diff options
author | Hugues Peccatte <hugues.peccatte@gmail.com> | 2014-09-14 22:47:24 +0400 |
---|---|---|
committer | Hugues Peccatte <hugues.peccatte@gmail.com> | 2014-09-14 22:47:24 +0400 |
commit | 41c02512c7af351231f4ec280e146eef597be2db (patch) | |
tree | 176414cece06e3f9b6749fd9e6c3836d51dc4458 /js/tbl_change.js | |
parent | fbf2e028f55a59b307022b0c79cf1b6f4df65cf5 (diff) |
Code style improvements.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Diffstat (limited to 'js/tbl_change.js')
-rw-r--r-- | js/tbl_change.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tbl_change.js b/js/tbl_change.js index bab668dbad..d73e4edc50 100644 --- a/js/tbl_change.js +++ b/js/tbl_change.js @@ -311,7 +311,7 @@ AJAX.registerOnload('tbl_change.js', function () { * available). */ $('select[name="submit_type"]').bind('change', function (e) { - var $thisElemSubmitTypeField = $(this); + var thisElemSubmitTypeVal = $(this).val(); var $table = $('table.insertRowTable'); var auto_increment_column = $table.find('input[name^="auto_increment"]'); auto_increment_column.each(function () { @@ -322,9 +322,9 @@ AJAX.registerOnload('tbl_change.js', function () { var value_field = $table.find('input[name="' + thisElemName.replace('auto_increment', 'fields') + '"]'); var previous_value = $(prev_value_field).val(); if (previous_value !== undefined) { - if ($thisElemSubmitTypeField.val() == 'insert' - || $thisElemSubmitTypeField.val() == 'insertignore' - || $thisElemSubmitTypeField.val() == 'showinsert' + if (thisElemSubmitTypeVal == 'insert' + || thisElemSubmitTypeVal == 'insertignore' + || thisElemSubmitTypeVal == 'showinsert' ) { $(value_field).val(0); } else { |