diff options
author | Guy Pyrzak <guy.pyrzak@gmail.com> | 2010-06-06 10:40:18 +0200 |
---|---|---|
committer | Guy Pyrzak <guy.pyrzak@gmail.com> | 2010-06-06 10:40:18 +0200 |
commit | 9fd857307079b57f515fa394cd8f0aefc64336e0 (patch) | |
tree | 2849d82ab0db1ec7a17d84044f92bed039cbe563 /js | |
parent | 99ad6a4e8674133c5bb8367d291eb1986c3cee8a (diff) | |
download | bugzilla-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.js | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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); } } } |