From 8838c8e6f6fd48c18d83fb4ded7b5cf87d89c1ef Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 12 Nov 2015 10:36:05 +0100 Subject: [PATCH] Just remove registration to disable it. --- .../app/controllers/layout_ref.coffee | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/app/assets/javascripts/app/controllers/layout_ref.coffee b/app/assets/javascripts/app/controllers/layout_ref.coffee index 2ca8ee7f6..79c9a15c0 100644 --- a/app/assets/javascripts/app/controllers/layout_ref.coffee +++ b/app/assets/javascripts/app/controllers/layout_ref.coffee @@ -1892,25 +1892,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.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.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' ) class chatWindowRef extends Spine.Controller @extend Spine.Events