From 02e2c1dd013d77e7aebebc38a3a1ff2068486cf4 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 3 Dec 2019 23:49:08 -0400 Subject: [PATCH] Remove body spacer HTML and JavaScript Not needed with the new UI. Signed-off-by: Roberto Rosario --- HISTORY.rst | 1 + .../appearance/static/appearance/js/mayan_app.js | 16 ---------------- .../appearance/templates/appearance/base.html | 2 -- .../appearance/templates/appearance/root.html | 3 --- 4 files changed, 1 insertion(+), 21 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index ccfb5b277d..a779e012f5 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -6,6 +6,7 @@ - Fix username color on mobile screens. - Hide the multi item selection help text on mobile screens. - Update Django to version 1.11.26. +- Remove body spacer HTML and JavaScript. Not needed with the new UI. 3.3 (2019-12-03) ================ diff --git a/mayan/apps/appearance/static/appearance/js/mayan_app.js b/mayan/apps/appearance/static/appearance/js/mayan_app.js index 3bd4477fc1..6a295c4c2d 100644 --- a/mayan/apps/appearance/static/appearance/js/mayan_app.js +++ b/mayan/apps/appearance/static/appearance/js/mayan_app.js @@ -78,13 +78,6 @@ class MayanApp { } } - doBodyAdjust () { - // Adjust the height of the body-spacer to move content elements - // up or down when the navbar changes size. - const navbarSize = 60; - $('.body-spacer').css('height', $('.navbar').height() - navbarSize); - } - doRefreshAJAXMenu (options) { $.ajax({ complete: function() { @@ -180,7 +173,6 @@ class MayanApp { var self = this; this.setupAJAXSpinner(); - this.setupBodyAdjust(); this.setupFormHotkeys(); this.setupFullHeightResizing(); this.setupItemsSelector(); @@ -216,14 +208,6 @@ class MayanApp { }); } - setupBodyAdjust () { - var self = this; - - this.window.resize(function() { - self.doBodyAdjust(); - }); - } - setupFormHotkeys () { $('body').on('keypress', '.form-hotkey-enter', function (e) { if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) { diff --git a/mayan/apps/appearance/templates/appearance/base.html b/mayan/apps/appearance/templates/appearance/base.html index e742b2c995..c016c3d045 100644 --- a/mayan/apps/appearance/templates/appearance/base.html +++ b/mayan/apps/appearance/templates/appearance/base.html @@ -56,7 +56,6 @@ {% navigation_resolve_menus names='object,secondary' sort_results=True as action_menus_link_results %} {% if action_menus_link_results %}