diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-08-11 13:12:15 +0300 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-08-11 13:12:15 +0300 |
commit | 24991614e26efbd5a4429c0014ddc93583baa76c (patch) | |
tree | 25020e5188b5882be44cd55b2e3476ca1a0bba1c /js/tbl_change.js | |
parent | 5e937f44875ab0aab777f37c0dd6a9f0854e4c1a (diff) |
Fix #11382 Selecting values for set field throws JS error
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/tbl_change.js')
-rw-r--r-- | js/tbl_change.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/js/tbl_change.js b/js/tbl_change.js index ccbf52f5b8..cd092afae0 100644 --- a/js/tbl_change.js +++ b/js/tbl_change.js @@ -162,7 +162,7 @@ function verificationsAfterFieldChange(urlField, multi_edit, theType) { var evt = window.event || arguments.callee.caller.arguments[0]; var target = evt.target || evt.srcElement; - var $this_input = $("input[name='fields[multi_edit][" + multi_edit + "][" + + var $this_input = $(":input[name^='fields[multi_edit][" + multi_edit + "][" + urlField + "]']"); // the function drop-down that corresponds to this input field var $this_function = $("select[name='funcs[multi_edit][" + multi_edit + "][" + @@ -172,12 +172,6 @@ function verificationsAfterFieldChange(urlField, multi_edit, theType) function_selected = true; } - // check if it is textarea rather than input - if ($this_input.length === 0) { - $this_input = $("textarea[name='fields[multi_edit][" + multi_edit + "][" + - urlField + "]']"); - } - //To generate the textbox that can take the salt var new_salt_box = "<br><input type=text name=salt[multi_edit][" + multi_edit + "][" + urlField + "]" + " id=salt_" + target.id + " placeholder='" + PMA_messages.strEncryptionKey + "'>"; |