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:
authorMadhura Jayaratne <madhura.cj@gmail.com>2014-12-02 14:37:46 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2014-12-02 14:37:46 +0300
commit410d1c32df612e2ebd35bb3c604d2ee54a29c59c (patch)
treedb668a8be2071870a2c284d214dd507361894ab1 /js/config.js
parentbd02f91a2a9cf189a3555deed813026116b4ae24 (diff)
.live() and .die() methods are deprecated. Use .on() and .off() methods instead
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/config.js')
-rw-r--r--js/config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/config.js b/js/config.js
index 63147b7e90..d200de3717 100644
--- a/js/config.js
+++ b/js/config.js
@@ -12,7 +12,7 @@ AJAX.registerTeardown('config.js', function () {
$('div.tabs_contents').undelegate();
$('#import_local_storage, #export_local_storage').unbind('click');
$('form.prefs-form').unbind('change').unbind('submit');
- $('div.click-hide-message').die('click');
+ $(document).off('click', 'div.click-hide-message');
$('#prefs_autoload').find('a').unbind('click');
});
@@ -703,7 +703,7 @@ AJAX.registerOnload('config.js', function () {
}
});
- $('div.click-hide-message').live('click', function () {
+ $(document).on('click', 'div.click-hide-message', function () {
$(this)
.hide()
.parent('.group')