Renamed widget namespace.
This commit is contained in:
parent
220e72069c
commit
6963045e9f
11 changed files with 19 additions and 19 deletions
|
@ -244,7 +244,7 @@ class App.Controller extends Spine.Controller
|
|||
el.unbind()
|
||||
|
||||
# start customer info controller
|
||||
new App.UserWidget(
|
||||
new App.WidgetUser(
|
||||
el: el
|
||||
user_id: data.user_id
|
||||
callback: data.callback
|
||||
|
|
|
@ -191,7 +191,7 @@ class App.TicketCreate extends App.Controller
|
|||
@el.find('textarea').trigger('change')
|
||||
|
||||
# show template UI
|
||||
new App.TemplateUI(
|
||||
new App.WidgetTemplate(
|
||||
el: @el.find('.ticket_template')
|
||||
template_id: template['id']
|
||||
)
|
||||
|
@ -199,7 +199,7 @@ class App.TicketCreate extends App.Controller
|
|||
@formDefault = @formParam( @el.find('.ticket-create') )
|
||||
|
||||
# show text module UI
|
||||
@textModule = new App.TextModuleUI(
|
||||
@textModule = new App.WidgetTextModule(
|
||||
el: @el.find('.ticket-create').find('textarea')
|
||||
)
|
||||
|
||||
|
|
|
@ -156,7 +156,7 @@ class App.TicketZoom extends App.Controller
|
|||
|
||||
# show text module UI
|
||||
if !@isRole('Customer')
|
||||
new App.TextModuleUI(
|
||||
new App.WidgetTextModule(
|
||||
el: @el.find('textarea')
|
||||
data:
|
||||
ticket: @ticket
|
||||
|
@ -265,7 +265,7 @@ class TicketInfo extends App.ControllerDrox
|
|||
|
||||
# start tag controller
|
||||
if !@isRole('Customer')
|
||||
new App.TagWidget(
|
||||
new App.WidgetTag(
|
||||
el: @el.find('.tag_info')
|
||||
object_type: 'Ticket'
|
||||
object: @ticket
|
||||
|
@ -288,7 +288,7 @@ class TicketWidgets extends App.Controller
|
|||
|
||||
# start customer info controller
|
||||
if !@isRole('Customer')
|
||||
new App.UserWidget(
|
||||
new App.WidgetUser(
|
||||
el: @el.find('.customer_info')
|
||||
user_id: @ticket.customer_id
|
||||
ticket: @ticket
|
||||
|
@ -296,7 +296,7 @@ class TicketWidgets extends App.Controller
|
|||
|
||||
# start link info controller
|
||||
if !@isRole('Customer')
|
||||
new App.LinkInfo(
|
||||
new App.WidgetLink(
|
||||
el: @el.find('.link_info')
|
||||
object_type: 'Ticket'
|
||||
object: @ticket
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class App.ChatWidget extends App.Controller
|
||||
class Widget extends App.Controller
|
||||
events:
|
||||
'submit #chat_form': 'submitMessage'
|
||||
'focusin [name=chat_message]': 'focusIn'
|
||||
|
@ -212,4 +212,4 @@ class App.ChatWidget extends App.Controller
|
|||
)
|
||||
@render()
|
||||
|
||||
App.Config.set( 'chat', App.ChatWidget, 'Widgets' )
|
||||
App.Config.set( 'chat', Widget, 'Widgets' )
|
|
@ -1,4 +1,4 @@
|
|||
class App.LinkInfo extends App.ControllerDrox
|
||||
class App.WidgetLink extends App.ControllerDrox
|
||||
events:
|
||||
'click [data-type=add]': 'add',
|
||||
'click [data-type=edit]': 'toggle',
|
|
@ -1,4 +1,4 @@
|
|||
class App.MaintenanceWidget extends App.Controller
|
||||
class Widget extends App.Controller
|
||||
constructor: ->
|
||||
super
|
||||
|
||||
|
@ -31,4 +31,4 @@ class Message extends App.ControllerModal
|
|||
forceReload: message.reload
|
||||
)
|
||||
|
||||
App.Config.set( 'maintenance', App.MaintenanceWidget, 'Widgets' )
|
||||
App.Config.set( 'maintenance', Widget, 'Widgets' )
|
|
@ -1,4 +1,4 @@
|
|||
class App.OrganizationWidget extends App.Controller
|
||||
class App.WidgetOrganization extends App.Controller
|
||||
events:
|
||||
'focusout [data-type=update-org]': 'update',
|
||||
'click [data-type=edit-org]': 'edit'
|
|
@ -1,4 +1,4 @@
|
|||
class App.TagWidget extends App.Controller
|
||||
class App.WidgetTag extends App.Controller
|
||||
constructor: ->
|
||||
super
|
||||
@load()
|
|
@ -1,4 +1,4 @@
|
|||
class App.TemplateUI extends App.ControllerDrox
|
||||
class App.WidgetTemplate extends App.ControllerDrox
|
||||
events:
|
||||
'click [data-type=template_save]': 'create',
|
||||
'click [data-type=template_select]': 'select',
|
|
@ -1,4 +1,4 @@
|
|||
class App.TextModuleUI extends App.Controller
|
||||
class App.WidgetTextModule extends App.Controller
|
||||
constructor: ->
|
||||
super
|
||||
|
||||
|
@ -59,7 +59,7 @@ class App.TextModuleUI extends App.Controller
|
|||
|
||||
return values
|
||||
|
||||
class App.TextModuleUIOld extends App.Controller
|
||||
class App.WidgetTextModuleOld extends App.Controller
|
||||
events:
|
||||
'click [data-type=save]': 'create',
|
||||
'click [data-type=text_module_delete]': 'delete',
|
|
@ -1,4 +1,4 @@
|
|||
class App.UserWidget extends App.ControllerDrox
|
||||
class App.WidgetUser extends App.ControllerDrox
|
||||
events:
|
||||
'focusout [data-type=update]': 'update',
|
||||
'click [data-type=edit]': 'edit'
|
||||
|
@ -62,7 +62,7 @@ class App.UserWidget extends App.ControllerDrox
|
|||
|
||||
if user.organization_id
|
||||
@el.append('<div class="org-info"></div>')
|
||||
new App.OrganizationWidget(
|
||||
new App.WidgetOrganization(
|
||||
organization_id: user.organization_id
|
||||
el: @el.find('.org-info')
|
||||
)
|
Loading…
Reference in a new issue