From bb627660a9cf0ce17375d3cdfc01274d2e559ba7 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 1 Dec 2014 22:33:31 +0200 Subject: use localStorage to show intro-task only until clicked Also fix miscased scss filename. --- src/main.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') diff --git a/src/main.js b/src/main.js index 9b021298..edb76e97 100644 --- a/src/main.js +++ b/src/main.js @@ -47,6 +47,17 @@ function(textanalysis_ui, textanalysis, buttons, history, drag_n_drop, } rz_core.update_view__graph(false); }); + + var intro_task_elem = $('#intro-task'); + // TODO: messages (why tasks?) - this one is special but we want them to be handled in their own file. + if (!localStorage.intro_task_hide) { + intro_task_elem.show(); + } + $('#intro-task .task-close-button').click(function(e) { + localStorage.intro_task_hide = true; + intro_task_elem.hide(); + }); + // TODO: interaction between the hack above and this model_core.init(rz_config); textanalysis.init(rz_core.graph); -- cgit v1.3.1