Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2258
Bug3421.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 8:47 PM
2014-11-21 20:47:47 (UTC+0)
Size
922 B
Referenced Files
None
Subscribers
None
Bug3421.patch
View Options
Index: includes/EditPage.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/EditPage.php,v
retrieving revision 1.198
diff -u -r1.198 EditPage.php
--- includes/EditPage.php 30 Jul 2005 08:03:04 -0000 1.198
+++ includes/EditPage.php 11 Sep 2005 04:27:29 -0000
@@ -140,7 +140,7 @@
$this->importFormData( $wgRequest );
- if( $this->live ) {
+ if( $this->live && !$this->mTitle->isCssJsSubpage() ) {
$this->livePreview();
return;
}
@@ -674,7 +674,7 @@
* Set up the button for it; if not supported by the browser
* it will fall through to the normal form submission method.
*/
- if( $wgLivePreview ) {
+ if( $wgLivePreview && !$isCssJsSubpage ) {
global $wgJsMimeType;
$wgOut->addHTML( '<script type="'.$wgJsMimeType.'" src="' .
htmlspecialchars( $wgStylePath . '/common/preview.js' ) .
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1834
Default Alt Text
Bug3421.patch (922 B)
Attached To
Mode
T5421: LivePreview breaks User CSS/JS previews
Attached
Detach File
Event Timeline
Log In to Comment