Stop popups from re-initializing sidebox. Fixes favorites causing whole application to reload after saving a popup.

This commit is contained in:
Nathan Gray 2014-05-12 20:36:18 +00:00
parent f5010b880b
commit 9a8182480f

View File

@ -92,7 +92,10 @@ var AppJS = Class.extend(
this.egw = egw(this.appname, window);
// Initialize sidebox - ID set server side
// Initialize sidebox for non-popups.
// ID set server side
if(window.opener == null)
{
var sidebox = jQuery('#favorite_sidebox_'+this.appname);
if(sidebox.length == 0 && egw_getFramework() != null)
{
@ -108,6 +111,7 @@ var AppJS = Class.extend(
{
this._init_sidebox(sidebox);
}
}
},
/**