using egw.is_popup() which deals with situation of egw main-window having an opener (eg. bookmark)

This commit is contained in:
Ralf Becker 2014-05-13 06:44:50 +00:00
parent 1ccc8f9e0d
commit ac220a6e82

View File

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