מדיה ויקי:Gadget-HotCat.js: הבדלים בין גרסאות בדף

Change hotcat_uncat_regex to also catch simple parameters (such as dates)
Previous double-inclusion guard mysteriously fails on Safari 3.1.1, leading to HotCat not being loaded at all. No idea why.
שורה 1: שורה 1:
//<source lang="javascript">
//<source lang="javascript">
if (typeof (hotcat) == 'undefined') {
// Guard against double inclusions


var hotcat_loaded = false; // Guard against double inclusions
var hotcat_running = 0 ;
var hotcat_running = 0 ;
var hotcat_last_v = "" ;
var hotcat_last_v = "" ;
שורה 126: שורה 125:


function hotcat () {
function hotcat () {
  if (hotcat_loaded) return; // Guard against double inclusions
  hotcat_loaded = true;
   JSconfig.registerKey('HotCatDelay', 100, 'HotCat autocompletion delay (ms):', 5);
   JSconfig.registerKey('HotCatDelay', 100, 'HotCat autocompletion delay (ms):', 5);


שורה 798: שורה 799:
addOnloadHook ( hotcat ) ;
addOnloadHook ( hotcat ) ;


} // end if guard against double-inclusions
//</source>
//</source>