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
path: root/js/sql.js
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2014-12-04 09:53:06 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2014-12-04 09:53:06 +0300
commit60079cd29771591945dc5b6b08b3c819c3eeb9dc (patch)
treedd5a749c5685eebef4afae9fbce46ce5becde242 /js/sql.js
parent096c5d4ac0826e74617e36fc5419a6d0f277ccd4 (diff)
As of 1.9, the event name string "hover" is no longer supported as a synonym for "mouseenter mouseleave"
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/sql.js')
-rw-r--r--js/sql.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/js/sql.js b/js/sql.js
index eb7b966d13..cddb325303 100644
--- a/js/sql.js
+++ b/js/sql.js
@@ -95,7 +95,8 @@ AJAX.registerTeardown('sql.js', function () {
$(document).off('submit', "#sqlqueryform.ajax");
$(document).off('click', "input[name=navig].ajax");
$(document).off('submit', "form[name='displayOptionsForm'].ajax");
- $(document).off('hover', 'th.column_heading.pointer');
+ $(document).off('mouseenter', 'th.column_heading.pointer');
+ $(document).off('mouseleave', 'th.column_heading.pointer');
$(document).off('click', 'th.column_heading.marker');
$(window).unbind('scroll');
$(document).off("keyup", ".filter_rows");
@@ -641,8 +642,11 @@ AJAX.registerOnload('sql.js', function () {
/**
* vertical column highlighting in horizontal mode when hovering over the column header
*/
- $(document).on('hover', 'th.column_heading.pointer', function (e) {
- PMA_changeClassForColumn($(this), 'hover', e.type == 'mouseenter');
+ $(document).on('mouseenter', 'th.column_heading.pointer', function (e) {
+ PMA_changeClassForColumn($(this), 'hover', true);
+ });
+ $(document).on('mouseleave', 'th.column_heading.pointer', function (e) {
+ PMA_changeClassForColumn($(this), 'hover', false);
});
/**