https://bugzilla.wikimedia.org/show_bug.cgi?id=21363
Summary: Can't add dialogs with a user script
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: Normal
Component: UsabilityInitiative
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=6744)
--> (https://bugzilla.wikimedia.org/attachment.cgi?id=6744)
patch
To add a new dialog to the toolbar, one needs to do something like this:
...
var mydialog = {
modules: {
mydialog: {
titleMsg: 'mydialog-title',
id: 'mydialog-id',
init: mydialoginit,
html: mydialoghtml,
dialog: {
width:400,
buttons: {
...
}
}
}
}
}
$j('#wpTextbox1').wikiEditor('addDialog', mydialog);
...
However, this doesn't seem to work (nor do other slight variations) and gives a
JS error (in Firefox) like:
Error: configuration is undefined
Source File:
http://wiki.com/w/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.dialogs.js?7
Line: 53
The attached patch should fix this.
--
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l