* All applications/ Tutorials: Fix discarding tutorials prompt not working if the configuration is set to sidebox

This commit is contained in:
Hadi Nategh 2015-12-03 13:04:33 +00:00
parent 51a4da3204
commit 10e2554100
2 changed files with 3 additions and 3 deletions

View File

@ -765,7 +765,7 @@ app.classes.home = AppJS.extend(
/**
* Function calls on discard checkbox and will set
* the egw_tutorial_autoload preference
* the egw_tutorial_noautoload preference
*
* @param {type} egw
* @param {type} widget
@ -774,7 +774,7 @@ app.classes.home = AppJS.extend(
{
if (widget)
{
this.egw.set_preference('common', 'egw_tutorial_autoload', widget.get_value());
this.egw.set_preference('common', 'egw_tutorial_noautoload', widget.get_value());
}
}
});

View File

@ -326,7 +326,7 @@
if (window.framework === window.top.framework && typeof et2_dialog != 'undefined' &&
!egw.preference('egw_tutorial_noautoload', 'common') &&
!parseInt(document.getElementById('egw_script_id').getAttribute('data-framework-reload')) &&
!egw.config('egw_tutorial_disable', 'phpgwapi') || egw.config('egw_tutorial_disable', 'phpgwapi') == 'sidebox')
(!egw.config('egw_tutorial_disable', 'phpgwapi') || egw.config('egw_tutorial_disable', 'phpgwapi') == 'sidebox'))
{
// we need to wait until common translations are loaded
egw.langRequireApp(window, 'common', function()