diff --git a/app/assets/javascripts/layout.js b/app/assets/javascripts/layout.js index 228283a19..d1f403fed 100644 --- a/app/assets/javascripts/layout.js +++ b/app/assets/javascripts/layout.js @@ -10,6 +10,16 @@ (function(context,$) { context.JK = context.JK || {}; + + // Static function to hide the 'curtain' which hides the underlying + // stuff until we can get it laid out. Called from both the main + // client as well as the landing page. + context.JK.hideCurtain = function(duration) { + setTimeout(function() { + $('.curtain').fadeOut(2*duration); + }, duration); + }; + context.JK.Layout = function() { // privates diff --git a/app/assets/javascripts/utils.js b/app/assets/javascripts/utils.js index a34b9f405..b42338c12 100644 --- a/app/assets/javascripts/utils.js +++ b/app/assets/javascripts/utils.js @@ -15,13 +15,6 @@ return template; }; - - context.JK.hideCurtain = function(duration) { - setTimeout(function() { - $('.curtain').fadeOut(2*duration); - }, duration); - }; - /* * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message * Digest Algorithm, as defined in RFC 1321. diff --git a/app/controllers/clients_controller.rb b/app/controllers/clients_controller.rb index cc745520c..915f40046 100644 --- a/app/controllers/clients_controller.rb +++ b/app/controllers/clients_controller.rb @@ -2,9 +2,6 @@ class ClientsController < ApplicationController include UsersHelper - # have to be signed in currently to see this screen - # before_filter :signed_in_user - def index # use gon to pass variables into javascript gon.websocket_gateway_uri = Rails.application.config.websocket_gateway_uri diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index c45f7bd46..37398285f 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -59,13 +59,11 @@ class SessionsController < ApplicationController def complete_sign_in(user) sign_in user - #redirect_back_or music_sessions_url redirect_back_or client_url end def destroy sign_out - #redirect_to root_url redirect_to client_url end diff --git a/app/views/clients/index.html.erb b/app/views/clients/index.html.erb index 5a0aaf3a0..55f293a7b 100644 --- a/app/views/clients/index.html.erb +++ b/app/views/clients/index.html.erb @@ -10,7 +10,7 @@