Merge "Revert "mediawiki.action.edit.preview: Disable if there is no #wpTextbox1""
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 26 Mar 2015 23:26:14 +0000 (23:26 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 26 Mar 2015 23:26:14 +0000 (23:26 +0000)
resources/src/mediawiki.action/mediawiki.action.edit.preview.js

index 65ae0f0..4aa839c 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;
                }