https://bugzilla.wikimedia.org/show_bug.cgi?id=42939
Web browser: ---
Bug ID: 42939
Summary: VisualEditor: Save button should be disabled if dm
state is identical to page when it was loaded
Product: VisualEditor
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Initialisation and integration
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Right now, the Save button starts disabled, but when the transaction depth is
non-zero it's enabled. This means that two actions that reverse each other
(rather than being formally undone) let the user make a 'null edit', which MW
then silently accepts.
Ideally, the Save/Create button should be disabled if dm state is identical to
page when it was loaded (except for the special-case of oldid pages, where it
should always be enabled). Roan suggests a string comparison of the current and
original HTML is the least-bad option, given the lack of hash functions in
JavaScript.
--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l