מדיה ויקי:Gadget-HotCat.js: הבדלים בין גרסאות בדף
Switch off auto-completion for subcategory and parent category engines; fix a typo |
Fix a bug with capitalization for single-category changes |
||
| שורה 429: | שורה 429: | ||
if (toAdd) { | if (toAdd) { | ||
toAdd = toAdd.replace (/_/g, ' ').replace (/^\s+|\s+$/g, ""); | toAdd = toAdd.replace (/_/g, ' ').replace (/^\s+|\s+$/g, ""); | ||
if (toAdd.length == 0) | if (toAdd.length == 0) toAdd = null; | ||
} | } | ||
if (toRemove) { | if (toRemove) { | ||
toRemove = toRemove.replace (/_/g, ' ').replace (/^\s+|\s+$/g, ""); | toRemove = toRemove.replace (/_/g, ' ').replace (/^\s+|\s+$/g, ""); | ||
if (toRemove.length == 0) | if (toRemove.length == 0) toRemove = null; | ||
} | } | ||
if (toAdd || toRemove) { | if (toAdd || toRemove) { | ||