WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 22 months ago

#19587 new enhancement

Wordpress widget admin bug — at Initial Version

Reported by: ciprian_vb Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Widgets Keywords:
Focuses: Cc:

Description

Hi,
When a new widget is added to the sidebar, the javascript does not load for that widget. for example, if I just installed a plugin like iCalendar Events Widget or live countdown timer (bare with me, it's not the plugin that's faulty and I'll tell you why) and after installation I want to add it to the sidebar, I go to the widgets area under prefferences and drag and drop it.

The bug is this: untill I refresh the page, the jquery won't work for anything in that widget. Both of the plugins mentioned above have a datepicker (from jquery-ui-core) popup that shows once a textbox or button is clicked. if the widget has just been added, the jquery that's supposed to run and show the calendars does not work until the page is refreshed.

I received a "not working" status because of this and people complained that my plugin (live countdown timer) is broken. On further investigation, I found out that it was because wordpress is not loading the javascript when first adding the widget in the sidebar and a refresh is required.

Change History (0)

Note: See TracTickets for help on using tickets.