From d1d16f1706b80439c9088403f4cf48e3c631581f Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Wed, 25 Nov 2015 15:09:03 +0100 Subject: [PATCH] chat designer: add load button to preview --- .../javascripts/app/controllers/_channel/chat.coffee | 4 ++-- app/assets/javascripts/app/views/channel/chat.jst.eco | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) 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 @@
-
-
+ +
- -
+
+ +
@@ -73,7 +74,7 @@
-
+
<%- @T('Online') %>