https://bugzilla.wikimedia.org/show_bug.cgi?id=59099
Web browser: ---
Bug ID: 59099
Summary: mw.notify() with type to get different ui with
predefined styles
Product: MediaWiki
Version: 1.23-git
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: JavaScript
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
Created attachment 14188
--> https://bugzilla.wikimedia.org/attachment.cgi?id=14188&action=edit
mw.notify() with type for watch and patrol
mw.notify() is used for success and for fail notifications. But it has always
the same style.
It would be nice to have a set of predefined ui styles for different types. The
types should orient at the API results: For example:
* type "notify": Green. Success. Default style.
* type "warn": Yellow. Success but with warning.
* type "error": Red. Fail.
I created a patch to demonstrate the idea. The styles use different background
colors for the different types. It would be better to have self-explanatory
icons.
--
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