diff options
| author | Alon Levy <alon@pobox.com> | 2014-12-01 22:33:31 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-01 22:33:36 +0200 |
| commit | bb627660a9cf0ce17375d3cdfc01274d2e559ba7 (patch) | |
| tree | 447aaf622e831a4c90aeaeae70f83e5427d2c0b3 /src | |
| parent | 3d825732760a610509a2c51f37461426a7a113b7 (diff) | |
use localStorage to show intro-task only until clicked
Also fix miscased scss filename.
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.js | 11 |
1 files changed, 11 insertions, 0 deletions
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); |
