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

אין תקציר עריכה
אין תקציר עריכה
שורה 874: שורה 874:
.then(function() {
.then(function() {
try {
try {
config = require('./WLM1.json');
config = require('./WLM.json');
} catch (err) {
} catch (err) {
alert('null');
config = null;
}
}
config = require('./WLM.json');
alert(JSON.stringify(config));
$.get(mw.util.wikiScript(), {
$.get(mw.util.wikiScript(), {
title: 'משתמש:' + mw.config.get('wgUserName') + '/WLM.json',
title: 'משתמש:' + mw.config.get('wgUserName') + '/WLM.json',
שורה 886: שורה 884:
.done(function(data1) {
.done(function(data1) {
config = JSON.parse(data1);
config = JSON.parse(data1);
})
.fail(function() {
if (config == null)
alert('ERR: ' + i18n('jsonlost'));
})
})
.always(function() {
.always(function() {