diff options
author | Smita Kumari <kumarismita62@gmail.com> | 2014-09-24 18:04:53 +0400 |
---|---|---|
committer | Smita Kumari <kumarismita62@gmail.com> | 2014-09-24 18:04:53 +0400 |
commit | d00ac27f75e23347abdc7ffcfde4a3ca44ec12b9 (patch) | |
tree | 41171799e741aff5400eb1b94c35fbba4987f107 /js/indexes.js | |
parent | 6d755d3e8e1825ea785ab412789cff0e1d68129f (diff) |
fix bug #4540 #4541
Signed-off-by: Smita Kumari <kumarismita62@gmail.com>
Diffstat (limited to 'js/indexes.js')
-rw-r--r-- | js/indexes.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/indexes.js b/js/indexes.js index d0f670c3ec..17ba19d0ec 100644 --- a/js/indexes.js +++ b/js/indexes.js @@ -460,7 +460,7 @@ AJAX.registerTeardown('indexes.js', function () { $('a.drop_primary_key_index_anchor.ajax').die('click'); $("#table_index tbody tr td.edit_index.ajax, #indexes .add_index.ajax").die('click'); $('#index_frm input[type=submit]').die('click'); - $('body').off('click', 'select[name*="field_key"]'); + $('body').off('change', 'select[name*="field_key"]'); }); /** @@ -590,7 +590,7 @@ AJAX.registerOnload('indexes.js', function () { * Ajax event handler for advanced index creation during table creation * and column addition. */ - $('body').on('click', 'select[name*="field_key"]', function () { + $('body').on('change', 'select[name*="field_key"]', function () { // Index of column on Table edit and create page. var col_index = /\d/.exec($(this).attr('name')); col_index = col_index[0]; |