diff options
author | Nisarg Jhaveri <nisargjhaveri@gmail.com> | 2015-02-02 20:49:06 +0300 |
---|---|---|
committer | Nisarg Jhaveri <nisargjhaveri@gmail.com> | 2015-02-02 20:49:06 +0300 |
commit | f9116b514cfbec3f95c56a769e76184abf8f08ba (patch) | |
tree | b790c421ff2862df810187a292fca4932bec1566 /js/navigation.js | |
parent | 3e05148ad637f067647373f4699a7536cb0aaaba (diff) |
Remove unnecessary calculation, fix coding style
- Remove unnecessary calculation
- Remove trailing spaces in `navigation.js`
Signed-off-by: Nisarg Jhaveri <nisargjhaveri@gmail.com>
Diffstat (limited to 'js/navigation.js')
-rw-r--r-- | js/navigation.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/navigation.js b/js/navigation.js index 0a6c575b84..4a212d7ec7 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -165,7 +165,7 @@ $(function () { $icon.attr('src', icon_reload_src); }, 1000); }); - + $(document).on("change", '#navi_db_select', function (event) { $(this).closest('form').trigger('submit'); }); @@ -1111,8 +1111,7 @@ var ResizeHandler = function () { }); } // Set content bottom space beacuse of console - $('body').css('margin-bottom', - $(window).height() + $(document).scrollTop() - $('#pma_console').offset().top + 'px'); + $('body').css('margin-bottom', $('#pma_console').height() + 'px'); }; /* Initialisation section begins here */ if ($.cookie('pma_navi_width')) { |