summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorGuy Pyrzak <guy.pyrzak@gmail.com>2010-06-06 10:40:18 +0200
committerGuy Pyrzak <guy.pyrzak@gmail.com>2010-06-06 10:40:18 +0200
commit9fd857307079b57f515fa394cd8f0aefc64336e0 (patch)
tree2849d82ab0db1ec7a17d84044f92bed039cbe563 /js
parent99ad6a4e8674133c5bb8367d291eb1986c3cee8a (diff)
downloadbugzilla-9fd857307079b57f515fa394cd8f0aefc64336e0.tar.gz
bugzilla-9fd857307079b57f515fa394cd8f0aefc64336e0.tar.xz
Bug 450301: What Simplify searching UI, initial improvements to the advanced search ui.
r=mkanat, a=mkanat
Diffstat (limited to 'js')
-rw-r--r--js/TUI.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/js/TUI.js b/js/TUI.js
index aa7f2fff4..34a79dc16 100644
--- a/js/TUI.js
+++ b/js/TUI.js
@@ -68,6 +68,7 @@ function TUI_hide_default(className) {
function _TUI_toggle_control_link(className) {
var link = document.getElementById(className + "_controller");
+ if (!link) return;
var original_text = link.innerHTML;
link.innerHTML = TUI_alternates[className];
TUI_alternates[className] = original_text;
@@ -93,14 +94,14 @@ function _TUI_store(aClass, state) {
}
function _TUI_restore() {
- var classes = YAHOO.util.Cookie.getSubs(TUI_COOKIE_NAME);
- for (item in classes) {
- if (classes[item] == 0) {
- var elements = YAHOO.util.Dom.getElementsByClassName(item);
+ var yui_classes = YAHOO.util.Cookie.getSubs(TUI_COOKIE_NAME);
+ for (yui_item in yui_classes) {
+ if (yui_classes[yui_item] == 0) {
+ var elements = YAHOO.util.Dom.getElementsByClassName(yui_item);
for (var i = 0; i < elements.length; i++) {
YAHOO.util.Dom.addClass(elements[i], 'bz_tui_hidden');
}
- _TUI_toggle_control_link(item);
+ _TUI_toggle_control_link(yui_item);
}
}
}