mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 08:58:25 +01:00
* All applications/ Tutorials: Fix discarding tutorials prompt not working if the configuration is set to sidebox
This commit is contained in:
parent
51a4da3204
commit
10e2554100
@ -765,7 +765,7 @@ app.classes.home = AppJS.extend(
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Function calls on discard checkbox and will set
|
* Function calls on discard checkbox and will set
|
||||||
* the egw_tutorial_autoload preference
|
* the egw_tutorial_noautoload preference
|
||||||
*
|
*
|
||||||
* @param {type} egw
|
* @param {type} egw
|
||||||
* @param {type} widget
|
* @param {type} widget
|
||||||
@ -774,7 +774,7 @@ app.classes.home = AppJS.extend(
|
|||||||
{
|
{
|
||||||
if (widget)
|
if (widget)
|
||||||
{
|
{
|
||||||
this.egw.set_preference('common', 'egw_tutorial_autoload', widget.get_value());
|
this.egw.set_preference('common', 'egw_tutorial_noautoload', widget.get_value());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -326,7 +326,7 @@
|
|||||||
if (window.framework === window.top.framework && typeof et2_dialog != 'undefined' &&
|
if (window.framework === window.top.framework && typeof et2_dialog != 'undefined' &&
|
||||||
!egw.preference('egw_tutorial_noautoload', 'common') &&
|
!egw.preference('egw_tutorial_noautoload', 'common') &&
|
||||||
!parseInt(document.getElementById('egw_script_id').getAttribute('data-framework-reload')) &&
|
!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
|
// we need to wait until common translations are loaded
|
||||||
egw.langRequireApp(window, 'common', function()
|
egw.langRequireApp(window, 'common', function()
|
||||||
|
Loading…
Reference in New Issue
Block a user