From 5883f1466480c3dcd755530802f0ebf7aa50f58e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 3 Feb 2016 13:50:19 +0100 Subject: [PATCH 1/3] Remove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- js/functions.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/js/functions.js b/js/functions.js index 153ccf3e73..75fe3bc6a8 100644 --- a/js/functions.js +++ b/js/functions.js @@ -44,11 +44,6 @@ var sql_autocomplete = false; */ var sql_autocomplete_default_table = ''; -/** - * @var chart_activeTimeouts object active timeouts that refresh the charts. When disabling a realtime chart, this can be used to stop the continuous ajax requests - */ -var chart_activeTimeouts = {}; - /** * @var central_column_list array to hold the columns in central list per db. */ From c3e057b94212320d6425047f02ff4f6dc5a931ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 3 Feb 2016 13:56:15 +0100 Subject: [PATCH 2/3] Remove unused parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- js/makegrid.js | 14 +++++++------- js/tbl_structure.js | 1 - 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/js/makegrid.js b/js/makegrid.js index bfa69efb64..12d3dc2fff 100644 --- a/js/makegrid.js +++ b/js/makegrid.js @@ -1579,14 +1579,14 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi g.dragStartReorder(e, this); } }) - .mouseenter(function (e) { + .mouseenter(function () { if (g.visibleHeadersCount > 1) { $(this).css('cursor', 'move'); } else { $(this).css('cursor', 'inherit'); } }) - .mouseleave(function (e) { + .mouseleave(function () { g.showReorderHint = false; $(this).tooltip("option", { content: g.updateHint() @@ -2028,7 +2028,7 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi $(g.cEditStd).on('keydown', 'input.edit_box, select', handleCtrlNavigation); - $(g.cEditStd).find('.edit_box').focus(function (e) { + $(g.cEditStd).find('.edit_box').focus(function () { g.showEditArea(); }); $(g.cEditStd).on('keydown', '.edit_box, select', function (e) { @@ -2047,7 +2047,7 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi $(g.cEditTextarea).on('keydown', 'textarea.edit_box, select', handleCtrlNavigation); - $(g.cEditTextarea).find('.edit_box').focus(function (e) { + $(g.cEditTextarea).find('.edit_box').focus(function () { g.showEditArea(); }); $(g.cEditTextarea).on('keydown', '.edit_box, select', function (e) { @@ -2082,7 +2082,7 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi g.hideEditCell(); g.postEditedCell(); }); - $(window).bind('beforeunload', function (e) { + $(window).bind('beforeunload', function () { if (g.isCellEdited) { return g.saveCellWarning; } @@ -2199,14 +2199,14 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi // register events for hint tooltip (anchors inside draggable th) $(t).find('th.draggable a') - .mouseenter(function (e) { + .mouseenter(function () { g.showSortHint = true; g.showMultiSortHint = true; $(t).find("th.draggable").tooltip("option", { content: g.updateHint() }); }) - .mouseleave(function (e) { + .mouseleave(function () { g.showSortHint = false; g.showMultiSortHint = false; $(t).find("th.draggable").tooltip("option", { diff --git a/js/tbl_structure.js b/js/tbl_structure.js index 9e727317e7..3dbfa32809 100644 --- a/js/tbl_structure.js +++ b/js/tbl_structure.js @@ -93,7 +93,6 @@ AJAX.registerOnload('tbl_structure.js', function () { // Re-initialize variables. primary_indexes = []; - unique_indexes = []; indexes = []; fulltext_indexes = []; spatial_indexes = []; From cd1d926a57676005669beb73748a00291e818f93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 3 Feb 2016 13:56:58 +0100 Subject: [PATCH 3/3] Remove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- js/makegrid.js | 1 - 1 file changed, 1 deletion(-) diff --git a/js/makegrid.js b/js/makegrid.js index 12d3dc2fff..75bd4c633f 100644 --- a/js/makegrid.js +++ b/js/makegrid.js @@ -1405,7 +1405,6 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi * @var is_null String capturing whether 'checkbox_null__' is checked. */ var is_null = $(g.cEdit).find('input:checkbox').is(':checked'); - var value; if ($(g.cEdit).find('.edit_area').is('.edit_area_loading')) { // the edit area is still loading (retrieving cell data), no need to post