diff --git a/app/assets/javascripts/app/controllers/_channel/chat.coffee b/app/assets/javascripts/app/controllers/_channel/chat.coffee index 7d459e442..41639fd9b 100644 --- a/app/assets/javascripts/app/controllers/_channel/chat.coffee +++ b/app/assets/javascripts/app/controllers/_channel/chat.coffee @@ -6,7 +6,7 @@ class App.ChannelChat extends App.Controller 'click .js-widget': 'widget' 'change .js-params': 'updateParams' 'keyup .js-params': 'updateParams' - 'submit .js-testurl': 'changeDemoWebsite' + 'submit .js-demo-head': 'changeDemoWebsite' 'blur .js-testurl-input': 'changeDemoWebsite' 'click .js-selectBrowserWidth': 'selectBrowserWidth' 'click .js-swatch': 'usePaletteColor' @@ -204,7 +204,7 @@ class App.ChannelChat extends App.Controller if !@url.startsWith('http') @url = "http://#{ @url }" - @urlInput.addClass('is-loading') + @urlInput.addClass('is-loading').focus() @palette.empty() diff --git a/app/assets/javascripts/app/views/channel/chat.jst.eco b/app/assets/javascripts/app/views/channel/chat.jst.eco index bbc7edf7b..dc03447d2 100644 --- a/app/assets/javascripts/app/views/channel/chat.jst.eco +++ b/app/assets/javascripts/app/views/channel/chat.jst.eco @@ -60,12 +60,13 @@