mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
* Mobile template: Close sidemenu after clicking on items in sidebar
This commit is contained in:
parent
e43a0cf4fb
commit
56df11b5da
@ -278,6 +278,8 @@ var et2_tree = (function(){ "use strict"; return et2_inputWidget.extend(
|
||||
var args = jQuery.makeArray(arguments);
|
||||
// splice in widget as 2. parameter, 1. is new node-id, now 3. is old node id
|
||||
args.splice(1, 0, widget);
|
||||
// try to close mobile sidemenu after clicking on node
|
||||
if (egwIsMobile() && typeof args[2] == 'string') framework.toggleMenu('on');
|
||||
return handler.apply(this, args);
|
||||
});
|
||||
}
|
||||
|
@ -46,6 +46,7 @@
|
||||
open: function()
|
||||
{
|
||||
this._super.apply(this,arguments);
|
||||
jQuery('.egw_fw_ui_sidemenu_listitem', this.contentDiv).click(function(){framework.toggleMenu('on');});
|
||||
framework.toggleMenu('on');
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user