אונטערשייד צווישן ווערסיעס פון "מעדיעוויקי:Common.js/externalsmaker.js"

קיין רעדאגירונג באמערקונג
אין תקציר עריכה
צייכן: צוריקגעשטעלט
אין תקציר עריכה
צייכן: אַנולירונג
שורה 1,754: שורה 1,754:
params[j] = undefined;
params[j] = undefined;
}
}
} else if (typeof curParam.json != "undefined") {
// Find the script element and get its text
var jsonElement = jQuery('html').find(curParam.json[0]);
if (jsonElement.length) {
try {
var jsonObj = JSON.parse(jsonElement.text());
// Navigate the path (e.g., "work.authors.0.displayName")
var path = curParam.json[1].split('.');
params[j] = jsonObj;
for (var pi = 0; pi < path.length; pi++) {
params[j] = params[j][path[pi]];
if (params[j] === undefined || params[j] === null) break;
}
} catch (e) {
console.error("JSON parse error", e);
params[j] = '';
}
}
else if (typeof curParam.urlparam != "undefined") {
else if (typeof curParam.urlparam != "undefined") {
params[j] = getParameterByName(curParam.urlparam) || "";
params[j] = getParameterByName(curParam.urlparam) || "";