r112957 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112956‎ | r112957 | r112958 >
Date:19:13, 3 March 2012
Author:nad
Status:deferred
Tags:
Comment:
don't wrap tree in jQuery it doesn't exist at that point
Modified paths:
  • /trunk/extensions/TreeAndMenu/TreeAndMenu.php (modified) (history)

Diff [purge]

Index: trunk/extensions/TreeAndMenu/TreeAndMenu.php
@@ -14,7 +14,7 @@
1515
1616 if( !defined( 'MEDIAWIKI' ) ) die( 'Not an entry point.' );
1717
18 -define( 'TREEANDMENU_VERSION','2.0.3, 2012-02-15' );
 18+define( 'TREEANDMENU_VERSION','2.0.4, 2012-03-03' );
1919
2020 // Set any unset images to default titles
2121 if( !isset( $wgTreeViewImages ) || !is_array( $wgTreeViewImages ) ) $wgTreeViewImages = array();
@@ -254,7 +254,7 @@
255255 document.getElementById('$id').innerHTML = $objid.toString();
256256 $opennodesjs
257257 for(i in window.tamOnload_$objid) { window.tamOnload_{$objid}[i](); }";
258 - $wgOut->addScript( "<script type=\"$wgJsMimeType\">$(function(){\n$script\n});</script>" );
 258+ $wgOut->addScript( "<script type=\"$wgJsMimeType\">$script</script>" );
259259 $html = "$top<div class='$class' id='$id'></div>$bottom";
260260 $html .= "<script type=\"$wgJsMimeType\">window.tamOnload_$objid=[]</script>";
261261 } else {

Status & tagging log