From c200c1ccc365982fbfb909091e055c1368b8c9b2 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 19 Oct 2015 10:48:16 +0000 Subject: [PATCH] WIP Egroupware tutorial: - Use framework-reload to determine the first load after login --- phpgwapi/js/framework/fw_browser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/js/framework/fw_browser.js b/phpgwapi/js/framework/fw_browser.js index bebb80b9f9..101ef8c90c 100644 --- a/phpgwapi/js/framework/fw_browser.js +++ b/phpgwapi/js/framework/fw_browser.js @@ -177,9 +177,9 @@ var fw_browser = Class.extend({ // the popup can be discarded for the next time show if user // select "Never" or can select "Later" and the introduction // dialog will show upon the next session refresh - if (!egw.preference('egw_tutorial_noautoload', 'common') && !sessionStorage.getItem('egw_tutorial_visited')) + if (!egw.preference('egw_tutorial_noautoload', 'common') + && !parseInt(document.getElementById('egw_script_id').getAttribute('data-framework-reload'))) { - sessionStorage.setItem('egw_tutorial_visited', true); var buttons = [ {text:"Show", id:"show", default:"true"}, {text:"Later", id:"later"},