From cf60bc3fa433c02237c98285e048d6568bd9c9eb Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Tue, 22 Mar 2016 17:39:01 +0100 Subject: [PATCH] make customer chat layout_ref work again --- .../app/controllers/layout_ref.coffee | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/app/assets/javascripts/app/controllers/layout_ref.coffee b/app/assets/javascripts/app/controllers/layout_ref.coffee index 6c46eac3b..d7ba9b5f8 100644 --- a/app/assets/javascripts/app/controllers/layout_ref.coffee +++ b/app/assets/javascripts/app/controllers/layout_ref.coffee @@ -1676,8 +1676,7 @@ class PrimaryEmailRef extends App.ControllerContent App.Config.set( 'layout_ref/primary_email', PrimaryEmailRef, 'Routes' ) -class App.CustomerChatRef extends App.Controller - @extend Spine.Events +class CustomerChatRef extends App.Controller questions: [ { @@ -1886,24 +1885,24 @@ class App.CustomerChatRef extends App.Controller else @nextQuestion() -class CustomerChatRouter extends App.ControllerPermanent - constructor: (params) -> - super +# class CustomerChatRouter extends App.ControllerPermanent +# constructor: (params) -> +# super - # check authentication - return if !@authenticate() +# # check authentication +# return if !@authenticate() - App.TaskManager.execute( - key: 'CustomerChatRef' - controller: 'CustomerChatRef' - params: {} - show: true - persistent: true - ) +# App.TaskManager.execute( +# key: 'CustomerChatRef' +# controller: 'CustomerChatRef' +# params: {} +# show: true +# persistent: true +# ) -#App.Config.set( 'layout_ref/customer_chat', CustomerChatRouter, 'Routes' ) -#App.Config.set( 'CustomerChatRef', { controller: 'CustomerChatRef', authentication: true }, 'permanentTask' ) -#App.Config.set( 'CustomerChatRef', { prio: 1200, parent: '', name: 'Customer Chat', target: '#layout_ref/customer_chat', key: 'CustomerChatRef', role: ['Agent'], class: 'chat' }, 'NavBar' ) +App.Config.set( 'layout_ref/customer_chat', CustomerChatRef, 'Routes' ) +# App.Config.set( 'CustomerChatRef', { controller: 'CustomerChatRef', authentication: true }, 'permanentTask' ) +# App.Config.set( 'CustomerChatRef', { prio: 1200, parent: '', name: 'Customer Chat', target: '#layout_ref/customer_chat', key: 'CustomerChatRef', role: ['Agent'], class: 'chat' }, 'NavBar' ) class ChatWindowRef extends Spine.Controller @extend Spine.Events