- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Changes
Jump to navigation
Jump to search
Line 88:
Line 88:
− +
Line 99:
Line 99:
− multiToggleStorage.set("none"); +
− } else {
− multiToggleStorage.set(selected);
+
Fix clicking active filter to clear filter, endless "none" splices
multi_toggle_element.hide();
multi_toggle_element.hide();
return;
return;
} else if (property_filter) {
} else if (property_filter && property_states[0] !== "none") {
property_states.splice(0, 0, "none")
property_states.splice(0, 0, "none")
}
}
if (selected && property_states.indexOf(selected) >= 0) {
if (selected && property_states.indexOf(selected) >= 0) {
if ((property_filter && multiToggleStorage.on(selected))) {
if ((property_filter && multiToggleStorage.on(selected))) {
selected = "none";
}
}
multiToggleStorage.set(selected);
} else {
} else {
selected = multiToggleStorage.get()
selected = multiToggleStorage.get()