* 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,14 +363,17 @@ var AppJS = Class.extend(
*/
_init_sidebox: function(sidebox)
{
// Initialize egw tutorial sidebox
var egw_fw = egw_getFramework();
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
if (tutorial.length && !this.tutorial_initialised)
// 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())
{
this.egwTutorial_init(tutorial[0]);
this.tutorial_initialised = true;
var egw_fw = egw_getFramework();
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
if (tutorial.length && !this.tutorial_initialised)
{
this.egwTutorial_init(tutorial[0]);
this.tutorial_initialised = true;
}
}
if(sidebox.length)
{