https://bugzilla.wikimedia.org/show_bug.cgi?id=38428
Web browser: ---
Bug #: 38428
Summary: Fire jQuery events in upload wizard for easier
integration of "community tools"
Product: MediaWiki extensions
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: UploadWizard
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
I think the following situations should trigger an event: (arguments to pass)
* Switch to a new page (page-DOM-object, page caption)
* Success:
** Upload (file name, UI-upload-item-DOM-object)
** Publish (file name, UI-upload-item-DOM-object)
* Error:
** Upload (file name, UI-upload-item-DOM-object, raw API-response)
** Publish (file name, UI-upload-item-DOM-object, raw API-response)
... and perhaps more like "before publish"
How an implementation could look like? What do I imagine:
$(document).triggerHandler('upwiz',
'community event',
'error',
'publish',
upload.name,
<DOM NODE>,
jqXHR.response
)
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l