diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2018-05-12 07:15:28 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2018-05-12 07:15:28 +0300 |
commit | 0ff776a6cf1a93dfc5f55a52ec5f27867400867c (patch) | |
tree | 19ed1d4e92827c69e55af5d85275f375eeddaf0e /js | |
parent | c0c233f8efed04028a4a7b552bf581268e3425fb (diff) |
Replace .mousedown() with .on()
.mousedown() event shorthand is deprecated
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'js')
-rw-r--r-- | js/console.js | 4 | ||||
-rw-r--r-- | js/makegrid.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/js/console.js b/js/console.js index 707971e49e..a0fe38f24b 100644 --- a/js/console.js +++ b/js/console.js @@ -112,7 +112,7 @@ var PMA_console = { PMA_console.$consoleToolbar.children('.console_switch').on('click', PMA_console.toggle); - $('#pma_console').find('.toolbar').children().mousedown(function (event) { + $('#pma_console').find('.toolbar').children().on('mousedown', function (event) { event.preventDefault(); event.stopImmediatePropagation(); }); @@ -478,7 +478,7 @@ var PMA_consoleResizer = { */ initialize: function () { $('#pma_console').find('.toolbar').off('mousedown'); - $('#pma_console').find('.toolbar').mousedown(PMA_consoleResizer._mousedown); + $('#pma_console').find('.toolbar').on('mousedown', PMA_consoleResizer._mousedown); } }; diff --git a/js/makegrid.js b/js/makegrid.js index 0604aa56c0..59f0d2041d 100644 --- a/js/makegrid.js +++ b/js/makegrid.js @@ -1534,7 +1534,7 @@ function PMA_makegrid (t, enableResize, enableReorder, enableVisib, enableGridEd $firstRowCols.each(function () { var cb = document.createElement('div'); // column border $(cb).addClass('colborder') - .mousedown(function (e) { + .on('mousedown', function (e) { g.dragStartRsz(e, this); }); $(g.cRsz).append(cb); @@ -1582,7 +1582,7 @@ function PMA_makegrid (t, enableResize, enableReorder, enableVisib, enableGridEd // register events $(g.t).find('th.draggable') - .mousedown(function (e) { + .on('mousedown', function (e) { $(g.o).addClass('turnOffSelect'); if (g.visibleHeadersCount > 1) { g.dragStartReorder(e, this); |