From 4165720ad59bee2290e08b1fe19b444b49a27883 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 1 Feb 2017 13:17:20 +0100 Subject: [PATCH] Make path and up button always available in filemanager mobile theme --- api/js/etemplate/et2_extension_nextmatch.js | 3 +-- filemanager/templates/mobile/app.css | 7 +++++++ filemanager/templates/mobile/app.less | 5 +++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/et2_extension_nextmatch.js b/api/js/etemplate/et2_extension_nextmatch.js index 44291857c3..40179d5148 100644 --- a/api/js/etemplate/et2_extension_nextmatch.js +++ b/api/js/etemplate/et2_extension_nextmatch.js @@ -2469,8 +2469,7 @@ var et2_nextmatch_header_bar = (function(){ "use strict"; return et2_DOMWidget.e this.toggle_header = jQuery(document.createElement('button')) .addClass('nm_toggle_header') .click(function(){ - jQuery(self.div).slideToggle('fast'); - jQuery(self.div).removeClass('nm_header_hide'); + jQuery(self.div).toggleClass('nm_header_hide'); jQuery(this).toggleClass('nm_toggle_header_on'); window.setTimeout(function(){self.nextmatch.resize();},800); }) diff --git a/filemanager/templates/mobile/app.css b/filemanager/templates/mobile/app.css index 89868392a9..2fb5fc6d28 100644 --- a/filemanager/templates/mobile/app.css +++ b/filemanager/templates/mobile/app.css @@ -394,6 +394,13 @@ div#stylite-filemanager-upload .dialogFooterToolbar button:active { #filemanager-index_nm #filemanager-index_filemanager-index-header_left { height: auto; } + #filemanager-index_nm .nextmatch_header.nm_header_hide { + display: inline-block !important; + } + #filemanager-index_nm .nextmatch_header.nm_header_hide .header_row_right, + #filemanager-index_nm .nextmatch_header.nm_header_hide .filtersContainer { + display: none; + } #filemanager-index_nm .nextmatch_header .filemanager_navigation { height: auto; } diff --git a/filemanager/templates/mobile/app.less b/filemanager/templates/mobile/app.less index ddec638217..52066972ef 100644 --- a/filemanager/templates/mobile/app.less +++ b/filemanager/templates/mobile/app.less @@ -53,8 +53,13 @@ padding-left: 15px; } } + #filemanager-index_tarp {display: none !important;} #filemanager-index_filemanager-index-header_left {height:auto;} + .nextmatch_header.nm_header_hide { + display:inline-block !important; + .header_row_right, .filtersContainer {display:none;} + } .nextmatch_header { .filemanager_navigation { height: auto;