Χρήστης:Geraki/HotCat.js: Διαφορά μεταξύ των αναθεωρήσεων

Περιεχόμενο που διαγράφηκε Περιεχόμενο που προστέθηκε
Νέα σελίδα: //<source lang="javascript"> /* HotCat V2.2 Ajax-based simple Category manager. Allows adding/removing/changing categories on a page view. Supports multiple category cha...
 
Ladsgroup (συζήτηση | συνεισφορές)
μ Maintenance: Replacing legacy global variable (phab:T72470)
 
Γραμμή 522:
var request = sajax_init_object ();
request.open
('GET', mw.config.get('wgServer') + mw.config.get('wgScriptPath') + '/api.php?format=json&action=query&meta=userinfo&uiprop=options&prop=info&inprop=watched&titles=' + encodeURIComponent (wgPageName), true);
request.onreadystatechange =
function () {
Γραμμή 725:
return;
}
var url = mw.config.get('wgServer') + mw.config.get('wgScriptPath') + '/api.php';
// Use %7C instead of |, otherwise Konqueror insists on re-encoding the arguments, resulting in doubly encoded
// category names. (That is a bug in Konqueror. Other browsers don't have this problem.)
Γραμμή 1.468:
if (this.engineSelector) this.engineSelector.style.display = 'none';
// Execute change from this.originalCategory to this.currentCategory|this.currentKey,
var editlk = mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + encodeURIComponent (wgPageName)
+ '&action=edit';
var url = editlk + '&hotcat_newcat=' + encodeURIComponent (this.currentCategory);
Γραμμή 1.514:
} else {
// Execute single category deletion.
var editlk = mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + encodeURIComponent (wgPageName)
+ '&action=edit';
if (noCommit || HotCat.no_autocommit) editlk += '&hotcat_nocommit=1';
Γραμμή 2.267:
setup ();
} else {
var url = mw.config.get('wgServer') + mw.config.get('wgScriptPath') + '/api.php?format=json&callback=HotCat.start&action=query&titles='
+ encodeURIComponent (wgPageName) + '&prop=info%7Crevisions&rvprop=content%7Ctimestamp&meta=siteinfo';
var s = make ('script');