מדיה ויקי: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;
        toAdd = null;
      } else if (HotCat.capitalizePageNames) {
        toAdd = capitalize (toAdd);
      }
     }
     }
     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;
        toRemove = null;
      } else if (HotCat.capitalizePageNames) {
        toRemove = capitalize (toRemove);
      }
     }
     }
     if (toAdd || toRemove) {
     if (toAdd || toRemove) {