מדיה ויקי:Gadget-Cat-a-lot.js: הבדלים בין גרסאות בדף
separate add/copy functions, preserve sortkey when copying from one cat to another, add reload link |
fix breakage for cats with ":" in their name |
||
| שורה 91: | שורה 91: | ||
catALot.subCats = new Array(); | catALot.subCats = new Array(); | ||
for (var i = 0; i < cats.length; i++) { | for (var i = 0; i < cats.length; i++) { | ||
catALot.subCats.push(cats[i].title. | catALot.subCats.push(cats[i].title.replace(/^[^:]+:/, "")); | ||
} | } | ||
catALot.catCounter++; | catALot.catCounter++; | ||
| שורה 113: | שורה 113: | ||
} | } | ||
for (var i = 0; i < cats.length; i++) { | for (var i = 0; i < cats.length; i++) { | ||
catALot.parentCats.push(cats[i].title. | catALot.parentCats.push(cats[i].title.replace(/^[^:]+:/, "")); | ||
} | } | ||