From 62d4ead6a4945b4d1d8e510ea5a10efb8beec3d9 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 24 Nov 2015 02:52:41 +0100 Subject: [PATCH] Set first color automatically. Fetch more colors, just up to 8 colors in fronted. --- .../app/controllers/_channel/chat.coffee | 57 +++++++++++-------- 1 file changed, 34 insertions(+), 23 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_channel/chat.coffee b/app/assets/javascripts/app/controllers/_channel/chat.coffee index 860e6988e..4baa8c539 100644 --- a/app/assets/javascripts/app/controllers/_channel/chat.coffee +++ b/app/assets/javascripts/app/controllers/_channel/chat.coffee @@ -23,62 +23,62 @@ class App.ChannelChat extends App.Controller '.js-color': 'colorField' apiOptions: [ - { + { name: 'channel' default: "'default'" type: 'String' description: 'Name of the chat-channel.' } - { + { name: 'show' default: true type: 'Boolean' description: 'Show the chat when ready.' } - { + { name: 'target' default: "$('body')" type: 'jQuery Object' description: 'Where to append the chat to.' } - { + { name: 'host' - default: "(Empty)" + default: '(Empty)' type: 'String' description: "If left empty, the host gets auto-detected - in this case %s. The auto-detection reads out the host from the