Fixed naming issue.

This commit is contained in:
Martin Edenhofer 2015-09-15 22:38:31 +02:00
parent 333e8fb415
commit 064f81b9cd
4 changed files with 4 additions and 6 deletions

View file

@ -562,7 +562,6 @@ class App.ControllerModal extends App.Controller
buttonClass: 'btn--success'
centerButtons: []
container: null
onComplete: (->)
options = _.extend( defaults, options )
@ -601,7 +600,7 @@ class App.ControllerModal extends App.Controller
container: @container
.on
'show.bs.modal': @onShow
'shown.bs.modal': @onComplete
'shown.bs.modal': @onShown
'hidden.bs.modal': =>
@onHide()
# remove modal from dom
@ -613,7 +612,6 @@ class App.ControllerModal extends App.Controller
@el.modal('hide')
onShown: =>
@onComplete()
console.log('modal shown: do nothing')
# do nothing

View file

@ -828,7 +828,7 @@ class App.ChannelEmailNotificationWizard extends App.Wizard
container: @container
.on
'show.bs.modal': @onShow
'shown.bs.modal': @onComplete
'shown.bs.modal': @onShown
'hidden.bs.modal': =>
if @callback
@callback()

View file

@ -89,7 +89,7 @@ class Index extends App.ControllerContent
shown: true
cancel: true
container: @el.closest('.content')
onComplete: =>
onShown: =>
businessHours = new App.BusinessHours
hours: @hours

View file

@ -1329,7 +1329,7 @@ class slaRef extends App.ControllerContent
shown: true
cancel: true
container: @el
onComplete: =>
onShown: =>
@$('.js-responseTime').timepicker
maxHours: 99
@$('.js-time').timepicker