summaryrefslogtreecommitdiffstats
path: root/js/field.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/field.js')
-rw-r--r--js/field.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/field.js b/js/field.js
index 5dd43921d..8be6d5487 100644
--- a/js/field.js
+++ b/js/field.js
@@ -252,7 +252,8 @@ function showEditableField (e, ContainerInputArray) {
inputs.push(inputArea);
} else {
inputs = inputArea.getElementsByTagName('input');
- inputs = inputArea.getElementsByTagName('textarea');
+ if ( inputs.length == 0 )
+ inputs = inputArea.getElementsByTagName('textarea');
}
if ( inputs.length > 0 ) {
// Change the first field's value to ContainerInputArray[2]