* Calendar: fix not working storing of events

initalize video tutorial sidebox NOT for popups , as calendar edit app.js has this.et2 set to tutorial et2 object
This commit is contained in:
Ralf Becker 2015-10-30 09:17:09 +00:00
parent f98c37ed28
commit 81de77e02b

View File

@ -363,7 +363,9 @@ var AppJS = Class.extend(
*/ */
_init_sidebox: function(sidebox) _init_sidebox: function(sidebox)
{ {
// Initialize egw tutorial sidebox // Initialize egw tutorial sidebox, but only for non-popups, as calendar edit app.js has this.et2 set to tutorial et2 object
if (!this.egw.is_popup())
{
var egw_fw = egw_getFramework(); var egw_fw = egw_getFramework();
var tutorial = $j('#egw_tutorial_'+this.appname+'_sidebox', egw_fw ? egw_fw.sidemenuDiv : document); var tutorial = $j('#egw_tutorial_'+this.appname+'_sidebox', egw_fw ? egw_fw.sidemenuDiv : document);
// _init_sidebox gets currently called multiple times, which needs to be fixed // _init_sidebox gets currently called multiple times, which needs to be fixed
@ -372,6 +374,7 @@ var AppJS = Class.extend(
this.egwTutorial_init(tutorial[0]); this.egwTutorial_init(tutorial[0]);
this.tutorial_initialised = true; this.tutorial_initialised = true;
} }
}
if(sidebox.length) if(sidebox.length)
{ {
var self = this; var self = this;