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

m (Admin přesunul stránku Uživatel:Jirka Pavlik test (pavlik-ra@cuni.cz)/common.js na Uživatel:Jirka.Pavlik.test/common.js bez založení přesměrování: Automatický přesun při přejmenování uživatele „[[User:Jirka Pavlik test (pavli…)
 
(Není zobrazeno 11 mezilehlých verzí od jednoho dalšího uživatele.)
Řádek 1: Řádek 1:
if (mw && mw.config.get('persistent-id')) {
+
if (window.mw) {
var persistentId = mw.config.get('persistent-id');
+
  var unstructuredName = mw.config.get('unstructuredName');
 
+
  if (unstructuredName != null && unstructuredName.match(/^\d+$/)) {
if (persistentId.match(/^https:\/\/cas.cuni.cz\/idp\/shibboleth!https:\/\/wikisofia.cz\/shibboleth!.{28}$/)) {
+
      //document.write("-"+unstructuredName+"-");
    persistentId = persistentId.substring(67,95);
+
  }
    document.write(persistentId);
 
}
 
 
}
 
}

Aktuální verze z 21. 11. 2014, 22:55

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