Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSmita Kumari <kumarismita62@gmail.com>2014-09-24 18:04:53 +0400
committerSmita Kumari <kumarismita62@gmail.com>2014-09-24 18:04:53 +0400
commitd00ac27f75e23347abdc7ffcfde4a3ca44ec12b9 (patch)
tree41171799e741aff5400eb1b94c35fbba4987f107 /js/indexes.js
parent6d755d3e8e1825ea785ab412789cff0e1d68129f (diff)
fix bug #4540 #4541
Signed-off-by: Smita Kumari <kumarismita62@gmail.com>
Diffstat (limited to 'js/indexes.js')
-rw-r--r--js/indexes.js4
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];