From 6e69a46b7399acbaedc82bd1eb582b1b11f0e228 Mon Sep 17 00:00:00 2001 From: Manish Bisht Date: Thu, 29 Jun 2017 19:52:50 +0530 Subject: [PATCH] removed useless comments Signed-off-by: Manish Bisht --- js/menu-resizer.js | 10 +++++----- js/tbl_structure.js | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/js/menu-resizer.js b/js/menu-resizer.js index 2237c05376..801d0c8deb 100644 --- a/js/menu-resizer.js +++ b/js/menu-resizer.js @@ -28,11 +28,11 @@ if (windowWidth < 768) { // Sets the image for the left and right scroll indicator - $('.scrollindicator--right').html($(PMA_getImage('b_right.png').toString())); - $('.scrollindicator--left').html($(PMA_getImage('b_left.png').toString())); + $(PMA_getImage('b_left.png').toString()).prependTo($('.scrollindicator--left')); + $(PMA_getImage('b_right.png').toString()).prependTo($('.scrollindicator--right')); // Set the width of the navigation bar without scroll indicator - $('.navigationbar').css({'width': widthCalculator.call($container) - 59}); + $('.navigationbar').css({'width': widthCalculator.call($container) - 65}); // Scroll the navigation bar on click $('.scrollindicator--right') @@ -94,7 +94,7 @@ for (i = 0; i < l; i++) { total_len += $($li[i]).outerWidth(true); } - //console.log(wmax); + // Now hide menu elements that don't fit into the menubar var hidden = false; // Whether we have hidden any tabs while (total_len >= wmax && --l >= 0) { // Process the tabs backwards @@ -130,7 +130,7 @@ } // Show/hide the "More" tab as needed if (windowWidth < 768) { - $('.navigationbar').css({'width': wmax - 59}); + $('.navigationbar').css({'width': wmax - 65}); } else if ($submenu_ul.find('li').length > 0) { $submenu.addClass('shown'); diff --git a/js/tbl_structure.js b/js/tbl_structure.js index 40d18b17e8..f1d1d4c70a 100644 --- a/js/tbl_structure.js +++ b/js/tbl_structure.js @@ -35,7 +35,7 @@ * @return int */ function PMA_tbl_structure_menu_resizer_callback() { - /*var pagewidth = $('body').width(); + var pagewidth = $('body').width(); var $page = $('#page_content'); pagewidth -= $page.outerWidth(true) - $page.outerWidth(); var columnsWidth = 0; @@ -47,7 +47,7 @@ function PMA_tbl_structure_menu_resizer_callback() { $columns.each(function () { totalCellSpacing -= $(this).outerWidth(true); }); - return pagewidth - columnsWidth - totalCellSpacing - 15; // 15px extra margin*/ + return pagewidth - columnsWidth - totalCellSpacing - 15; // 15px extra margin } /**