r56076 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56075‎ | r56076 | r56077 >
Date:21:59, 8 September 2009
Author:werdna
Status:deferred
Tags:
Comment:
Load live preview script if Live Preview seems to be enabled. This makes Live Preview work correctly with LiquidThreads, hooray!
Modified paths:
  • /trunk/extensions/LiquidThreads/lqt.js (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/lqt.js
@@ -71,6 +71,12 @@
7272 // Add toolbar
7373 mwSetupToolbar();
7474
 75+ // Check for live preview
 76+ if ( $j('#wpLivePreview').length ) {
 77+ $j.getScript( stylepath+'/common/preview.js',
 78+ function() { setupLivePreview(); } );
 79+ }
 80+
7581 // Scroll to the textbox
7682 var targetOffset = $j(container).find('#wpTextbox1').offset().top;
7783 // Buffer at the top, roughly enough to see the heading and one line

Status & tagging log