Fixed color picker in chat admin.

This commit is contained in:
Martin Edenhofer 2016-07-22 10:13:56 +02:00
parent 8d28be378a
commit 99b1977a11
4 changed files with 1210 additions and 4 deletions

View file

@ -115,6 +115,8 @@ class App.ChannelChat extends App.Controller
@load() @load()
@permanent =
chatId: 1
@widgetDesignerPermanentParams = @widgetDesignerPermanentParams =
id: 'id' id: 'id'
@ -129,6 +131,11 @@ class App.ChannelChat extends App.Controller
processData: true processData: true
success: (data, status, xhr) => success: (data, status, xhr) =>
App.Collection.loadAssets(data.assets) App.Collection.loadAssets(data.assets)
firstChat = App.Chat.first()
if firstChat
@permanent =
chatId: firstChat.id
@stopLoading() @stopLoading()
@render(data) @render(data)
) )
@ -150,6 +157,7 @@ class App.ChannelChat extends App.Controller
@updatePreview() @updatePreview()
@updateParams() @updateParams()
@changeDemoWebsite()
# bind updatePreview with parameter animate = false # bind updatePreview with parameter animate = false
$(window).on 'resize.chat-designer', => @updatePreview false $(window).on 'resize.chat-designer', => @updatePreview false

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

View file

@ -129,6 +129,8 @@
</fieldset> </fieldset>
</form> </form>
<hr>
<h2><%- @T('Usage') %></h2> <h2><%- @T('Usage') %></h2>
<p><%- marked(@T('Insert the widget-code into the source code of every page the chat should be visible on. It should be placed at the end of the page source code before the §</body>§ closing tag.')) %></p> <p><%- marked(@T('Insert the widget-code into the source code of every page the chat should be visible on. It should be placed at the end of the page source code before the §</body>§ closing tag.')) %></p>
@ -175,6 +177,8 @@ $(function() {
<%- @T('When you turn on debugging by setting the option §debug§ to §true§ the reason gets printed to the javascript console.') %> <%- @T('When you turn on debugging by setting the option §debug§ to §true§ the reason gets printed to the javascript console.') %>
</p> </p>
<hr>
<h3><%- @T('Options') %></h3> <h3><%- @T('Options') %></h3>
<table class="settings-list"> <table class="settings-list">