Implement update status for nm header objects used for mobile template (eg. action button)

This commit is contained in:
Hadi Nategh 2016-06-17 12:29:23 +02:00
parent c173de3935
commit 6fbdd38e33
2 changed files with 11 additions and 6 deletions

View File

@ -2473,6 +2473,7 @@ var et2_nextmatch_header_bar = (function(){ "use strict"; return et2_DOMWidget.e
// Context menu
this.action_header = jQuery(document.createElement('button'))
.addClass('nm_action_header')
.hide()
.click (function(e){
jQuery('tr.selected',self.nextmatch.div).trigger({type:'contextmenu',which:3,originalEvent:e});
})

View File

@ -661,6 +661,10 @@ var et2_nextmatch_controller = (function(){ "use strict"; return et2_dataview_co
senders = [];
}
if(!this._widget) return;
// inform mobile framework about nm selections, need to update status of header objects on selection
if (egwIsMobile()) framework.nm_onselect_ctrl(this._widget, action, senders);
this._widget.onselect.call(this._widget, action,senders);
},