Remove body spacer HTML and JavaScript

Not needed with the new UI.

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-12-03 23:49:08 -04:00
parent 14df823568
commit 02e2c1dd01
4 changed files with 1 additions and 21 deletions
@@ -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)) {