「MediaWiki:Common.js」の版間の差分

編集の要約なし
編集の要約なし
編集の要約なし
 
(同じ利用者による、間の5版が非表示)
89行目: 89行目:
}
}
   
   
addOnloadHook( createCollapseButtons );
$( createCollapseButtons );
   
   
/** Test if an element has a certain class **************************************
/** [[Test]] if an element has a certain class **************************************
  *
  *
  * Description: Uses regular expressions and caching for better performance.
  * Description: Uses regular expressions and caching for better performance.
103行目: 103行目:
         };
         };
})();
})();


/**
/**
  * NIJC:
  * Keep code in MediaWiki:Common.js to a minimum as it is unconditionally
* loaded for all users on every wiki page. If possible create a gadget that is
* enabled by default instead of adding it here (since gadgets are fully
* optimized ResourceLoader modules with possibility to add dependencies etc.)
*
* Since Common.js isn't a gadget, there is no place to declare its
* dependencies, so we have to lazy load them with mw.loader.using on demand and
* then execute the rest in the callback. In most cases these dependencies will
* be loaded (or loading) already and the callback will not be delayed. In case a
* dependency hasn't arrived yet it'll make sure those are loaded before this.
  */
  */
// importScriptURI('http://bsd.neuroinf.jp/w/skins/common/jquery.min.js');
/*global mw, $, importStylesheet, importScript */
importScriptURI("http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js");
/*jshint curly:false eqnull:true, strict:false, browser:true, */
var NIJC_WindowOnLoad = window.onload;
mw.loader.using( ['mediawiki.util', 'mediawiki.notify', 'jquery.client'], function () {
window.onload = function(){  
/* Begin of mw.loader.using callback */
  if ( typeof(NIJC_WindowOnLoad) == "function" )
    NIJC_WindowOnLoad();
 
 
  jQuery(function($){
 


/**
/**
221行目: 223行目:
}
}


// $( createNavigationBarToggleButton );
$( createNavigationBarToggleButton );


});
 
}
/* End of mw.loader.using callback */
} );
/* DO NOT ADD CODE BELOW THIS LINE */