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:
@@ -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)
|
||||
================
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -56,7 +56,6 @@
|
||||
{% navigation_resolve_menus names='object,secondary' sort_results=True as action_menus_link_results %}
|
||||
{% if action_menus_link_results %}
|
||||
<div class="pull-right btn-group" id="menu-actions">
|
||||
<div class="body-spacer"></div>
|
||||
<button aria-expanded="true" class="btn btn-danger btn-sm dropdown-toggle" data-toggle="dropdown" type="button">
|
||||
{% trans 'Actions' %}
|
||||
<span class="caret"></span>
|
||||
@@ -108,7 +107,6 @@
|
||||
|
||||
{% if facet_menus_link_results %}
|
||||
<div id="sidebar">
|
||||
<div class="body-spacer"></div>
|
||||
<div class="list-group">
|
||||
{% for menu_link_result in facet_menus_link_results %}
|
||||
{% for link_group in menu_link_result.link_groups %}
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
{% include 'appearance/menu_main.html' %}
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="body-spacer"></div>
|
||||
<div class="row zero-margin">
|
||||
<div class="col-xs-12">
|
||||
<div id="ajax-content"></div>
|
||||
@@ -106,7 +105,6 @@
|
||||
{
|
||||
callback: function (options) {
|
||||
MayanApp.updateNavbarState();
|
||||
options.app.doBodyAdjust();
|
||||
},
|
||||
interval: 5000,
|
||||
menuSelector: '#menu-main',
|
||||
@@ -127,7 +125,6 @@
|
||||
MayanImage.intialize({
|
||||
templateInvalidDocument: '{% spaceless %}{% include "documents/invalid_document.html" %}{% endspaceless %}'
|
||||
});
|
||||
app.doBodyAdjust();
|
||||
app.doToastrMessages();
|
||||
app.resizeFullHeight();
|
||||
app.setupSelect2();
|
||||
|
||||
Reference in New Issue
Block a user