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:
authorRouslan Placella <rouslan@placella.com>2012-06-21 01:36:54 +0400
committerRouslan Placella <rouslan@placella.com>2012-10-31 00:07:01 +0400
commit3ca7d34240d5e6c173cc492662a2d4a2713b8306 (patch)
treeda3ed8aa4bd4f3be91b6a0fb0f977c09cee94a5b /js/tbl_relation.js
parent5838a4433921f285c70706146343bb21f0430b4a (diff)
Destroy registered jQuery events on page tear down
Diffstat (limited to 'js/tbl_relation.js')
-rw-r--r--js/tbl_relation.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/tbl_relation.js b/js/tbl_relation.js
index 634d249212..2f3f233d36 100644
--- a/js/tbl_relation.js
+++ b/js/tbl_relation.js
@@ -15,6 +15,13 @@ function show_hide_clauses($thisDropdown)
}
}
+/**
+ * Unbind all event handlers before tearing down a page
+ */
+AJAX.registerTeardown('tbl_relation.js', function() {
+ $('select.referenced_column_dropdown').unbind('change');
+});
+
AJAX.registerOnload('tbl_relation.js', function() {
// initial display
$('select.referenced_column_dropdown').each(function(index, one_dropdown) {