Revert "mediawiki.action.edit.preview: Disable if there is no #wpTextbox1"
authorTheDJ <hartman.wiki@gmail.com>
Thu, 26 Mar 2015 22:06:43 +0000 (22:06 +0000)
committerTheDJ <hartman.wiki@gmail.com>
Thu, 26 Mar 2015 22:06:43 +0000 (22:06 +0000)
This caused T94089

This reverts commit c890a2fdefaae2551897ce2f1b9f39d82b435dc2.

Change-Id: Ia5e151d12f0ad03ce50802502e661d7499749526

resources/src/mediawiki.action/mediawiki.action.edit.preview.js

index 84bde7d..3bf8e32 100644 (file)
        $( function () {
                // Do not enable on user .js/.css pages, as there's no sane way of "previewing"
                // the scripts or styles without reloading the page.
-               // Do not enable for ProofreadPage Index page editors, which have no textbox
-               if ( $( '#mw-userjsyoucanpreview' ).length || $( '#mw-usercssyoucanpreview' ).length || $( '#wpTextbox1' ).length === 0 ) {
+               if ( $( '#mw-userjsyoucanpreview' ).length || $( '#mw-usercssyoucanpreview' ).length ) {
                        return;
                }