Fix couple of mobile template issues

This commit is contained in:
Hadi Nategh 2022-09-30 11:39:51 +02:00
parent 780f14b4c5
commit b6398c4059
2 changed files with 2 additions and 2 deletions

View File

@ -482,7 +482,7 @@ egw.extend('links', egw.MODULE_GLOBAL, function()
link_quick_add: function(_parent) link_quick_add: function(_parent)
{ {
// check if quick-add selectbox is already there, only create it again if not // check if quick-add selectbox is already there, only create it again if not
if (document.getElementById('quick_add_selectbox')) return; if (document.getElementById('quick_add_selectbox') || egwIsMobile()) return;
const select = document.createElement('et2-select'); const select = document.createElement('et2-select');
select.setAttribute('id', 'quick_add_selectbox'); select.setAttribute('id', 'quick_add_selectbox');

View File

@ -997,7 +997,7 @@ import {tapAndSwipe} from "../../api/js/tapandswipe";
var $sidebar = jQuery('#'+egw.app_name()+'_sidebox_content'); var $sidebar = jQuery('#'+egw.app_name()+'_sidebox_content');
$sidebar.toggle(); $sidebar.toggle();
jQuery(this).css({ jQuery(this).css({
'background-image':'url('+egw.webserverUrl+'/' + ($sidebar.is(":visible")?'pixelegg/images/apps.svg':egw.app_name()+'/templates/pixelegg/images/navbar.svg)') 'background-image':'url('+egw.webserverUrl+'/' + ($sidebar.is(":visible")?'api/templates/default/images/apps.svg':egw.app_name()+'/templates/default/images/navbar.svg)')
}); });
}); });