Resources - do not clear currently set calendar owners, add to what's selected

This commit is contained in:
nathangray 2017-06-12 12:35:43 -06:00
parent 5995c63034
commit 1f2764c351

View File

@ -77,8 +77,12 @@ app.classes.resources = AppJS.extend(
var show_calendar = function(res_ids) { var show_calendar = function(res_ids) {
egw_message(this.egw.lang('%1 resource(s) View calendar',res_ids.length)); egw_message(this.egw.lang('%1 resource(s) View calendar',res_ids.length));
var current_owners = (app.calendar ? app.calendar.state.owner || [] : []).join(',');
this.egw.open_link('calendar.calendar_uiviews.index&view=planner&sortby=user&owner=0,r'+res_ids.join(',r')+'&ajax=true'); if(current_owners)
{
current_owners += ',';
}
this.egw.open_link('calendar.calendar_uiviews.index&view=planner&sortby=user&owner='+current_owners+'r'+res_ids.join(',r')+'&ajax=true');
}; };
if(selection && selection.all) if(selection && selection.all)