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

Fix for MW 1.13alpha
huebscher :-)
שורה 129: שורה 129:
   if ( hotcat_check_action() ) return ; // Edited page, reloading anyway
   if ( hotcat_check_action() ) return ; // Edited page, reloading anyway
   hotcat_check_upload () ;
   hotcat_check_upload () ;
   var catline = document.getElementById ('mw-normal-catlinks'); // Since MW 1.13alpha
 
  if (catline == null)
   var catline =  
     catline = getElementsByClassName ( document , "p" , "catlinks" ) [0] ; // Earlier versions
    document.getElementById ('mw-normal-catlinks') ||
     getElementsByClassName ( document , "p" , "catlinks" ) [0];
   if ( catline == null || typeof catline == 'undefined' ) return ;
   if ( catline == null || typeof catline == 'undefined' ) return ;