summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2011-11-07 22:04:08 +0100
committerDave Lawrence <dkl@mozilla.com>2011-11-07 22:04:08 +0100
commit316d0ce36713e466c4958aba30eaf4f02b53379f (patch)
tree31ef4b0adf4dbe6060b6fe430012e67c44a15132 /js
parent22f17940f4cd10ed6a5ebf57d279a4716ccfcbed (diff)
downloadbugzilla-316d0ce36713e466c4958aba30eaf4f02b53379f.tar.gz
bugzilla-316d0ce36713e466c4958aba30eaf4f02b53379f.tar.xz
Bug 669314: tidy up enter_bug
Diffstat (limited to 'js')
-rw-r--r--js/TUI.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/js/TUI.js b/js/TUI.js
index 34a79dc16..2dee8ab2e 100644
--- a/js/TUI.js
+++ b/js/TUI.js
@@ -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;
}