diff --git a/app/client/app.less b/app/client/app.less index eac6aae..33c7b39 100644 --- a/app/client/app.less +++ b/app/client/app.less @@ -6,6 +6,10 @@ padding-top: 10px; } +.hidden { + display: none; +} + .huge_text { font-size: 3em; } @@ -41,5 +45,5 @@ } .clickable { - cursor:pointer; + cursor:pointer; } diff --git a/app/client/startup.js b/app/client/startup.js index fabfe9b..4823cbd 100644 --- a/app/client/startup.js +++ b/app/client/startup.js @@ -9,6 +9,14 @@ Tracker.autorun(function() { function safeRoute(route) { return function () { + var controllerId = this.params.query.controller_id; + + if(controllerId) { + Session.setPersistent('controller_id', controllerId); + Session.setPersistent('hide_controller_selection', true); + } else { + Session.setPersistent('hide_controller_selection', false); + } console.log('go ', route); if (Meteor.zoblak.client.accessible(route)) { Session.set('templateName', route); diff --git a/app/client/tabs.html b/app/client/tabs.html index 002f10b..329b939 100644 --- a/app/client/tabs.html +++ b/app/client/tabs.html @@ -21,7 +21,7 @@