From: TheDJ Date: Thu, 26 Mar 2015 22:06:43 +0000 (+0000) Subject: Revert "mediawiki.action.edit.preview: Disable if there is no #wpTextbox1" X-Git-Tag: 1.31.0-rc.0~11977^2 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=e2148c0ac5ace4b7a697841bbd878ecb4abd46a8;p=lhc%2Fweb%2Fwiklou.git Revert "mediawiki.action.edit.preview: Disable if there is no #wpTextbox1" This caused T94089 This reverts commit c890a2fdefaae2551897ce2f1b9f39d82b435dc2. Change-Id: Ia5e151d12f0ad03ce50802502e661d7499749526 --- diff --git a/resources/src/mediawiki.action/mediawiki.action.edit.preview.js b/resources/src/mediawiki.action/mediawiki.action.edit.preview.js index 84bde7d237..3bf8e32b7a 100644 --- a/resources/src/mediawiki.action/mediawiki.action.edit.preview.js +++ b/resources/src/mediawiki.action/mediawiki.action.edit.preview.js @@ -205,8 +205,7 @@ $( 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; }