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

Řádek 1: Řádek 1:
 
if (window.mw) {
 
if (window.mw) {
var persistentId = mw.config.get('persistent-id');
+
  var unstructuredName = mw.config.get('unstructuredName');
 
+
  alert(unstructuredName);
if (persistentId.match(/^https:\/\/cas.cuni.cz\/idp\/shibboleth!https:\/\/wikisofia.cz\/shibboleth!.{28}$/)) {
+
  //if (persistentId.match(/^https:\/\/cas.cuni.cz\/idp\/shibboleth!https:\/\/wikisofia.cz\/shibboleth!.{28}$/)) {
    persistentId = persistentId.substring(67,95);
+
  //    persistentId = persistentId.substring(67,95);
    document.write(persistentId);
+
  //    document.write(persistentId);
}
+
  //}
 
}
 
}

Verze z 6. 11. 2014, 16:05

if (window.mw) {
  var unstructuredName = mw.config.get('unstructuredName');
  alert(unstructuredName);
  //if (persistentId.match(/^https:\/\/cas.cuni.cz\/idp\/shibboleth!https:\/\/wikisofia.cz\/shibboleth!.{28}$/)) {
  //    persistentId = persistentId.substring(67,95);
  //    document.write(persistentId);
  //}
}