https://bugzilla.wikimedia.org/show_bug.cgi?id=41267
Web browser: ---
Bug #: 41267
Summary: mediawiki.action.edit.preview is not loaded at Commons
despite "Use live preview" (wpuselivepreview) is
activated in [[Special:Preferences]]
Product: MediaWiki
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: Unprioritized
Component: JavaScript
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Tested with IE 8 and latest RC of FF.
Current behaviour:
When clicking the "preview" or "show diff" button, the page reloads.
Evidence:
...after the DOM is ready...
...executed in JavaScript console...
> mw.loader.getState('mediawiki.action.edit.preview');
'registered'
Expected behaviour:
When clicking the "preview" or "show diff" button, live preview just replaces
some elements in the DOM. No page reload.
> mw.loader.getState('mediawiki.action.edit.preview');
'ready'
How to reproduce:
Set your interface language to de or en, enable "Use live preview" in
[[Special:Preferences]], go to a page, edit a section, click preview.
Note:
Using manually
mw.loader.load('mediawiki.action.edit.preview');
works perfectly: After it is loaded, LivePreview works as expected.
--
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