diff options
author | Byron Jones <glob@mozilla.com> | 2011-11-07 22:04:08 +0100 |
---|---|---|
committer | Dave Lawrence <dkl@mozilla.com> | 2011-11-07 22:04:08 +0100 |
commit | 316d0ce36713e466c4958aba30eaf4f02b53379f (patch) | |
tree | 31ef4b0adf4dbe6060b6fe430012e67c44a15132 /js | |
parent | 22f17940f4cd10ed6a5ebf57d279a4716ccfcbed (diff) | |
download | bugzilla-316d0ce36713e466c4958aba30eaf4f02b53379f.tar.gz bugzilla-316d0ce36713e466c4958aba30eaf4f02b53379f.tar.xz |
Bug 669314: tidy up enter_bug
Diffstat (limited to 'js')
-rw-r--r-- | js/TUI.js | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -69,8 +69,14 @@ 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]; + var original_text; + if (link.nodeName == 'INPUT') { + original_text = link.value; + link.value = TUI_alternates[className]; + } else { + original_text = link.innerHTML; + link.innerHTML = TUI_alternates[className]; + } TUI_alternates[className] = original_text; } |