https://bugzilla.wikimedia.org/show_bug.cgi?id=24753
Summary: Callback actions are run when the toolbar is loaded, not when the tool button is clicked Product: MediaWiki extensions Version: any Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: Normal Component: UsabilityInitiative AssignedTo: tpars...@wikimedia.org ReportedBy: huji.h...@gmail.com CC: roan.katt...@gmail.com, ngau...@wikimedia.org, amil...@wikimedia.org In order for the WikiEditor toolbar to be extensible, we need a way to allow addition of toolbar buttons which execute custom functions when clicked. The 'callback' action seems to be created to address this issue. However, when you create a custom button with 'callback' action and pass the callback function name using the 'execute' property, this function is called when the toolbar is loaded (that is, right after the edit page is loaded). Expected result would be not to execute the function on page load, but to only execute it when the specific button is clicked on. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l