Renamed class App.ControllerModalNice to App.ControllerModal.

This commit is contained in:
Martin Edenhofer 2015-12-18 23:29:41 +01:00
parent a826b12704
commit 272a569b10
19 changed files with 44 additions and 48 deletions

View file

@ -586,7 +586,7 @@ class App.ControllerContent extends App.Controller
$('#content').removeClass('hide')
@navShow()
class App.ControllerModalNice extends App.Controller
class App.ControllerModal extends App.Controller
backdrop: true
keyboard: true
large: false
@ -714,7 +714,7 @@ class App.ControllerModalNice extends App.Controller
e.preventDefault()
@onSubmit(e)
class App.SessionMessage extends App.ControllerModalNice
class App.SessionMessage extends App.ControllerModal
onCancel: (e) =>
if @forceReload
@reload(e)

View file

@ -1,4 +1,4 @@
class App.ControllerGenericNew extends App.ControllerModalNice
class App.ControllerGenericNew extends App.ControllerModal
buttonClose: true
buttonCancel: true
buttonSubmit: true
@ -44,7 +44,7 @@ class App.ControllerGenericNew extends App.ControllerModalNice
ui.close()
)
class App.ControllerGenericEdit extends App.ControllerModalNice
class App.ControllerGenericEdit extends App.ControllerModal
buttonClose: true
buttonCancel: true
buttonSubmit: true
@ -208,7 +208,7 @@ class App.ControllerGenericIndex extends App.Controller
container: @container
)
class App.ControllerGenericDescription extends App.ControllerModalNice
class App.ControllerGenericDescription extends App.ControllerModal
buttonClose: true
buttonCancel: false
buttonSubmit: 'Close'
@ -262,7 +262,7 @@ class App.ControllerModalLoading extends App.Controller
return
App.Delay.set(remove, delay * 1000)
class App.ControllerGenericDestroyConfirm extends App.ControllerModalNice
class App.ControllerGenericDestroyConfirm extends App.ControllerModal
buttonClose: true
buttonCancel: true
buttonSubmit: 'yes'
@ -431,7 +431,7 @@ class App.ControllerNavSidbar extends App.ControllerContent
el: @$('.main')
)
class App.GenericHistory extends App.ControllerModalNice
class App.GenericHistory extends App.ControllerModal
buttonClose: true
buttonCancel: false
buttonSubmit: false

View file

@ -73,7 +73,7 @@ With Filters you can e. g. dispatch new Tickets into certain groups or set a cer
container: @el.closest('.content')
)
class App.ChannelEmailFilterEdit extends App.ControllerModalNice
class App.ChannelEmailFilterEdit extends App.ControllerModal
buttonClose: true
buttonCancel: true
buttonSubmit: true
@ -169,7 +169,7 @@ Once you have created a signature here, you need also to edit the groups where y
container: @el.closest('.content')
)
class App.ChannelEmailSignatureEdit extends App.ControllerModalNice
class App.ChannelEmailSignatureEdit extends App.ControllerModal
buttonClose: true
buttonCancel: true
buttonSubmit: true
@ -245,12 +245,8 @@ class App.ChannelEmailAccountOverview extends App.Controller
url: @apiPath + '/channels/email_index'
processData: true
success: (data, status, xhr) =>
@stopLoading()
# load assets
App.Collection.loadAssets(data.assets)
@render(data)
)
@ -391,7 +387,7 @@ class App.ChannelEmailAccountOverview extends App.Controller
channelDriver: @channelDriver
)
class App.ChannelEmailEdit extends App.ControllerModalNice
class App.ChannelEmailEdit extends App.ControllerModal
buttonClose: true
buttonCancel: true
buttonSubmit: true

View file

@ -17,17 +17,17 @@ class Index extends App.ControllerContent
#@load()
load: ->
# @startLoading()
# @ajax(
# id: 'twitter_index'
# type: 'GET'
# url: @apiPath + '/twitter'
# processData: true
# success: (data, status, xhr) =>
# App.Collection.loadAssets(data.assets)
# @stopLoading()
# @render(data)
# )
@startLoading()
@ajax(
id: 'twitter_index'
type: 'GET'
url: @apiPath + '/channels/twitter_index'
processData: true
success: (data, status, xhr) =>
@stopLoading()
App.Collection.loadAssets(data.assets)
@render(data)
)
render: =>
# accounts = App.Twitter.search(
@ -48,7 +48,7 @@ class Index extends App.ControllerContent
# description: description
createApp: ->
modal = new App.ControllerModalNice
modal = new App.ControllerModal
head: 'Connect Twitter App'
container: @el.parents('.content')
content: App.view('twitter/app_create')

View file

@ -146,7 +146,7 @@ class Index extends App.Controller
App.Config.set( 'Avatar', { prio: 1100, name: 'Avatar', parent: '#profile', target: '#profile/avatar', controller: Index }, 'NavBarProfile' )
class ImageCropper extends App.ControllerModalNice
class ImageCropper extends App.ControllerModal
buttonClose: true
buttonCancel: true
buttonSubmit: 'Save'
@ -221,7 +221,7 @@ class ImageCropper extends App.ControllerModalNice
@close()
class Camera extends App.ControllerModalNice
class Camera extends App.ControllerModal
buttonClose: true
buttonCancel: true
buttonSubmit: 'Save'

View file

@ -1,4 +1,4 @@
class App.TicketMerge extends App.ControllerModalNice
class App.TicketMerge extends App.ControllerModal
buttonClose: true
buttonCancel: true
buttonSubmit: true

View file

@ -513,7 +513,7 @@ class ChatWindow extends App.Controller
scrollToBottom: ->
@scrollHolder.scrollTop(@scrollHolder.prop('scrollHeight'))
class Setting extends App.ControllerModalNice
class Setting extends App.ControllerModal
buttonClose: true
buttonCancel: true
buttonSubmit: true

View file

@ -411,7 +411,7 @@ class ContentSidebarRightSidebarOptional extends App.ControllerContent
App.Config.set( 'layout_ref/content_sidebar_right_sidebar_optional', ContentSidebarRightSidebarOptional, 'Routes' )
class ModalForm extends App.ControllerModalNice
class ModalForm extends App.ControllerModal
head: '123 some title'
content: ->
@ -432,7 +432,7 @@ class ModalForm extends App.ControllerModalNice
App.Config.set( 'layout_ref/modal_form', ModalForm, 'Routes' )
class ModalText extends App.ControllerModalNice
class ModalText extends App.ControllerModal
content: ->
App.view('layout_ref/content')()
@ -1364,7 +1364,7 @@ class SlaRef extends App.ControllerContent
checkbox.closest('tr').toggleClass('is-active', checkbox.prop('checked'))
createNew: =>
@newItemModal = new App.ControllerModalNice
@newItemModal = new App.ControllerModal
head: 'Service Level Agreement (SLA)'
headPrefox: 'New'
contentInline: App.view('layout_ref/sla_modal')()
@ -1404,7 +1404,7 @@ class SchedulersRef extends App.ControllerContent
.text(if isInactive then 'Enable' else 'Disable')
createNew: =>
new App.ControllerModalNice
new App.ControllerModal
head: 'Scheduler'
headPrefix: 'New'
buttonSubmit: 'Create'
@ -1641,7 +1641,7 @@ class MergeCustomerRef extends App.ControllerContent
render: ->
@html App.view('layout_ref/merge_customer_view')
new App.ControllerModalNice
new App.ControllerModal
large: true
head: "#{@mergeSource.firstname} #{@mergeSource.lastname}"
headPrefix: 'Merge'

View file

@ -152,7 +152,7 @@ class Items extends App.ControllerContent
@load()
)
class Edit extends App.ControllerModalNice
class Edit extends App.ControllerModal
buttonClose: true
buttonCancel: true
buttonSubmit: true

View file

@ -120,7 +120,7 @@ class App.TaskbarWidget extends App.Controller
@navigate '#'
class Remove extends App.ControllerModalNice
class Remove extends App.ControllerModal
buttonClose: true
buttonCancel: true
buttonSubmit: 'Discared changes'

View file

@ -1,4 +1,4 @@
class App.TicketCustomer extends App.ControllerModalNice
class App.TicketCustomer extends App.ControllerModal
buttonClose: true
buttonCancel: true
buttonSubmit: true

View file

@ -631,7 +631,7 @@ class BulkForm extends App.Controller
msg: App.i18n.translateContent('Bulk-Action executed!')
}
class App.OverviewSettings extends App.ControllerModalNice
class App.OverviewSettings extends App.ControllerModal
buttonClose: true
buttonCancel: true
buttonSubmit: true

View file

@ -571,7 +571,7 @@ class App.TicketZoom extends App.Controller
# check if attachment exists but no body
attachmentCount = @$('.article-add .textBubble .attachments .attachment').length
if !articleParams['body'] && attachmentCount > 0
new App.ControllerModalNice(
new App.ControllerModal(
head: 'Text missing'
buttonCancel: 'Cancel'
buttonCancelClass: 'btn--danger'

View file

@ -80,7 +80,7 @@ class App.WidgetLink extends App.Controller
container: @container
)
class App.LinkAdd extends App.ControllerModalNice
class App.LinkAdd extends App.ControllerModal
buttonClose: true
buttonCancel: true
buttonSubmit: true

View file

@ -32,7 +32,7 @@ class TranslationSupport extends App.Controller
App.Config.set( 'translaton_support', TranslationSupport, 'Widgets' )
class Modal extends App.ControllerModalNice
class Modal extends App.ControllerModal
buttonClose: true
buttonCancel: 'No Thanks!'
buttonSubmit: 'Complete translations'
@ -55,8 +55,8 @@ class Modal extends App.ControllerModalNice
onCancel: =>
App.LocalStorage.set('translation_support_no', true, @Session.get('id'))
@onClose()
@close()
onSubmit: =>
@navigate '#system/translation'
@onClose()
@close()

View file

@ -73,7 +73,7 @@ class _ajaxSingleton
return if status is 502
# show error message
new App.ControllerModalNice(
new App.ControllerModal(
head: 'StatusCode: ' + status
contentInline: '<pre>' + App.Utils.htmlEscape(detail) + '</pre>'
buttonClose: true

View file

@ -76,7 +76,7 @@ class App.Browser
localStorage.setItem('fingerprint', fingerprint)
fingerprint
class Modal extends App.ControllerModalNice
class Modal extends App.ControllerModal
buttonClose: false
buttonCancel: false
buttonSubmit: false

View file

@ -289,7 +289,7 @@ class App.UserOrganizationAutocompletion extends App.Controller
container: @el.closest('.content')
)
class UserNew extends App.ControllerModalNice
class UserNew extends App.ControllerModal
buttonClose: true
buttonCancel: true
buttonSubmit: true

View file

@ -363,7 +363,7 @@ class _webSocketSingleton extends App.Controller
@_ajaxReceiveWorking = false
)
class Modal extends App.ControllerModalNice
class Modal extends App.ControllerModal
buttonClose: false
buttonCancel: false
buttonSubmit: false