לדלג לתוכן

שיחת משתמש:MF-Warburg

תוכן הדף אינו נתמך בשפות אחרות.
הוספת נושא
מתוך ויקיטקסט, מאגר הטקסטים החופשי
תגובה אחרונה: לפני 12 שנים מאת MF-Warburg

Hi,

When I edit a page, I get this Javascript error:

"Error: X is not defined
File: http://meta.wikimedia.org/w/index.php?title=User:MF-Warburg/global.js&action=raw&ctype=text/javascript
Line: 13"

I get to a very strange Javascript page:

importScriptURI('http://meta.wikimedia.org/w/index.php?title=User:Kalan/sslswitch.js&action=raw&ctype=text/javascript');
importScriptURI('http://incubator.wikimedia.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&action=raw&ctype=text/javascript');

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/active_sysops.js&action=raw&ctype=text/javascript');
 
if(typeof(activeSysopsConfig) === 'undefined') activeSysopsConfig = {}; // to move the button because of the sslswitch button
activeSysopsConfig.markWikisActiveSysops = true;
activeSysopsConfig.markWikisGS = true;
mw.util.addCSS('#wikiMarker { left: 15px; }');

if(typeof(activeSysopsConfig) == 'undefined') activeSysopsConfig = {}; // to get the "x active sysops" box too
activeSysopsConfig.markWikisActiveSysops = true;
activeSysopsConfig.markWikisActiveSysopsLessThan = X;

What is this page? And why is it connected to the general Javascript ?

--אראל סגלשיחה • כ"ח באדר ה'תשע"ב 08:38, 22 במרץ 2012 (IST)תגובה

The page you found there is my m:user:MF-Warburg/global.js settings file. For some reason, you are importing it in your own javascript file]. There was indeed an error in it, because the variable "markWikisActiveSysopsLessThan" was set to X, which is not a number, I have fixed that now (but I don't know why there was an error message showing up for you, I never had any problems with that). --MF-Warburg (שיחה) 20:03, 22 במרץ 2012 (IST)תגובה