מדיה ויקי:Gadget-HotCat.js: הבדלים בין גרסאות בדף
Fix for (-) links on upload page |
And a second fix for (-) on upload form |
||
| שורה 291: | שורה 291: | ||
// node.parentNode.firstChild (the DOM structure here is | // node.parentNode.firstChild (the DOM structure here is | ||
// <span><a...>Category</a> <a...>(-)</a>...</span>). | // <span><a...>Category</a> <a...>(-)</a>...</span>). | ||
var cat_title = | var cat_title = node.parentNode.firstChild.innerHTML; | ||
if ( hotcat_upload ) { | if ( hotcat_upload ) { | ||
hotcat_remove_upload ( cat_title ) ; | hotcat_remove_upload ( cat_title ) ; | ||
| שורה 301: | שורה 301: | ||
editlk = editlk + '&hotcat_nocommit=1'; | editlk = editlk + '&hotcat_nocommit=1'; | ||
hotcat_killEvt (evt); | hotcat_killEvt (evt); | ||
document.location = editlk + '&hotcat_removecat=' + cat_title ; | document.location = editlk + '&hotcat_removecat=' + encodeURIComponent (cat_title); | ||
return false; | return false; | ||
} | } | ||