מדיה ויקי:Gadget-HotCat.js: הבדלים בין גרסאות בדף
Simpler workaround for the UTF-8 problem on IE. |
מ Do away with the JSON callback: that strips user credentials, causing problems on private wikis. |
||
| שורה 624: | שורה 624: | ||
var url = wgServer + wgScriptPath + '/api.php?action=query&titles=' | var url = wgServer + wgScriptPath + '/api.php?action=query&titles=' | ||
+ encodeURIComponent ('Category:' + v) | + encodeURIComponent ('Category:' + v) | ||
+ '&prop=info|links|categories&plnamespace=14&format=json | + '&prop=info|links|categories&plnamespace=14&format=json'; | ||
var request = sajax_init_object() ; | var request = sajax_init_object() ; | ||
if (request == null) { | if (request == null) { | ||
| שורה 640: | שורה 640: | ||
hotcat_closeform (nocommit); | hotcat_closeform (nocommit); | ||
} else { | } else { | ||
var do_submit = eval (request.responseText) | var do_submit = hotcat_json_resolve (eval ('(' + request.responseText + ')')); | ||
if (do_submit) { | if (do_submit) { | ||
var txt = document.getElementById ('hotcat_text'); | |||
hotcat_closeform ( | hotcat_closeform ( | ||
nocommit | nocommit | ||