diff options
Diffstat (limited to 'js/field.js')
-rw-r--r-- | js/field.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/js/field.js b/js/field.js index 3d85ff116..ede2e43b9 100644 --- a/js/field.js +++ b/js/field.js @@ -255,6 +255,8 @@ function showEditableField (e, ContainerInputArray) { inputs.push(document.getElementById(ContainerInputArray[2])); } else { inputs = inputArea.getElementsByTagName('input'); + if ( inputs.length == 0 ) + inputs = inputArea.getElementsByTagName('textarea'); } if ( inputs.length > 0 ) { // Change the first field's value to ContainerInputArray[2] @@ -288,7 +290,7 @@ function showEditableField (e, ContainerInputArray) { * * var e: the event * var ContainerInputArray: An array containing the (edit) and text area and the input being displayed - * var ContainerInputArray[0]: the conainer that will be hidden usually shows the (edit) text + * var ContainerInputArray[0]: the container that will be hidden usually shows the (edit) text * var ContainerInputArray[1]: the input area and label that will be displayed * var ContainerInputArray[2]: the field that is on the page, might get changed by browser autocomplete * var ContainerInputArray[3]: the original value from the page loading. @@ -299,7 +301,7 @@ function checkForChangedFieldValues(e, ContainerInputArray ) { var unhide = false; if ( el ) { if ( el.value != ContainerInputArray[3] || - ( el.value == "" && el.id != "alias") ) { + ( el.value == "" && el.id != "alias" && el.id != "qa_contact" ) ) { unhide = true; } else { @@ -699,7 +701,8 @@ YAHOO.bugzilla.userAutocomplete = { id : YAHOO.bugzilla.userAutocomplete.counter, params : [ { match : [ decodeURIComponent(enteredText) ], - include_fields : [ "name", "real_name" ] + include_fields : [ "name", "real_name" ], + include_disabled : 1 } ] }; var stringified = YAHOO.lang.JSON.stringify(json_object); @@ -787,7 +790,7 @@ YAHOO.bugzilla.keywordAutocomplete = { this.expandContainer(); } }); - fieldAutoComp.dataRequestEvent.subscribe( function(type, args) { + keywordAutoComp.dataRequestEvent.subscribe( function(type, args) { args[0].autoHighlight = args[1] != ''; }); } |