מדיה ויקי:Gadget-HotCat.js: הבדלים בין גרסאות בדף
Fix for intereference with Lupin's popups: don't store category name in title attribute of remove link; instead read it directly from the DOM in hotcat_remove. |
מ Fix comment |
||
| שורה 257: | שורה 257: | ||
// Get the category name from the original link to the category, which is at | // Get the category name from the original link to the category, which is at | ||
// node.parentNode.firstChild (the DOM structure here is | // node.parentNode.firstChild (the DOM structure here is | ||
// <span><a...>Category</a> | // <span><a...>Category</a> <a...>(-)</a>...</span>). | ||
var cat_title = encodeURIComponent (node.parentNode.firstChild.innerHTML); | var cat_title = encodeURIComponent (node.parentNode.firstChild.innerHTML); | ||
if ( hotcat_upload ) { | if ( hotcat_upload ) { | ||