Better handle reloads from framework to avoid double toolbar and bad display

This commit is contained in:
nathangray 2016-06-08 16:02:54 -06:00
parent 578ded52b8
commit 1ce17f4656

View File

@ -366,6 +366,15 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
delete q.ajax;
delete q.menuaction;
if(!view && q.view || q.view != view && view == 'index') view = q.view;
// No specific view requested, looks like a reload from framework
if(this.sidebox_et2 && typeof view === 'undefined')
{
this._clear_cache();
this.setState({state: this.state});
return false;
}
if (this.sidebox_et2 && typeof app.classes.calendar.views[view] == 'undefined' && view != 'index')
{
if(q.owner)