https://bugzilla.wikimedia.org/show_bug.cgi?id=44915

       Web browser: ---
            Bug ID: 44915
           Summary: EditPage.php assumes mediawiki.action.edit module
                    present (breaks mobile)
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Page editing
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

In mobile this module is NOT present so this throws a javascript exception.

Currently a dependency is made in EditPage.php itself to add toolbar related
code. This should be added as a separate module rather than an inline script.

  $script = 'mw.loader.using("mediawiki.action.edit", function() {';

getEditToolbar should not run any javascript - it should simply add html that
is enhanced by a javascript module. An inline script does not seem to be
necessary here.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to