Uživatel:Jirka.Pavlik.test/common.js: Porovnání verzí

Řádek 2: Řádek 2:
 
   var unstructuredName = mw.config.get('unstructuredName');
 
   var unstructuredName = mw.config.get('unstructuredName');
 
   if (unstructuredName != null && unstructuredName.match(/^\d+$/)) {
 
   if (unstructuredName != null && unstructuredName.match(/^\d+$/)) {
       document.write("-"+unstructuredName+"-");
+
       //document.write("-"+unstructuredName+"-");
 
   }
 
   }
 
}
 
}

Verze z 6. 11. 2014, 16:15

if (window.mw) {
  var unstructuredName = mw.config.get('unstructuredName');
  if (unstructuredName != null && unstructuredName.match(/^\d+$/)) {
      //document.write("-"+unstructuredName+"-");
  }
}