Fixed naming issue.
This commit is contained in:
parent
333e8fb415
commit
064f81b9cd
4 changed files with 4 additions and 6 deletions
|
@ -562,7 +562,6 @@ class App.ControllerModal extends App.Controller
|
||||||
buttonClass: 'btn--success'
|
buttonClass: 'btn--success'
|
||||||
centerButtons: []
|
centerButtons: []
|
||||||
container: null
|
container: null
|
||||||
onComplete: (->)
|
|
||||||
|
|
||||||
options = _.extend( defaults, options )
|
options = _.extend( defaults, options )
|
||||||
|
|
||||||
|
@ -601,7 +600,7 @@ class App.ControllerModal extends App.Controller
|
||||||
container: @container
|
container: @container
|
||||||
.on
|
.on
|
||||||
'show.bs.modal': @onShow
|
'show.bs.modal': @onShow
|
||||||
'shown.bs.modal': @onComplete
|
'shown.bs.modal': @onShown
|
||||||
'hidden.bs.modal': =>
|
'hidden.bs.modal': =>
|
||||||
@onHide()
|
@onHide()
|
||||||
# remove modal from dom
|
# remove modal from dom
|
||||||
|
@ -613,7 +612,6 @@ class App.ControllerModal extends App.Controller
|
||||||
@el.modal('hide')
|
@el.modal('hide')
|
||||||
|
|
||||||
onShown: =>
|
onShown: =>
|
||||||
@onComplete()
|
|
||||||
console.log('modal shown: do nothing')
|
console.log('modal shown: do nothing')
|
||||||
# do nothing
|
# do nothing
|
||||||
|
|
||||||
|
|
|
@ -828,7 +828,7 @@ class App.ChannelEmailNotificationWizard extends App.Wizard
|
||||||
container: @container
|
container: @container
|
||||||
.on
|
.on
|
||||||
'show.bs.modal': @onShow
|
'show.bs.modal': @onShow
|
||||||
'shown.bs.modal': @onComplete
|
'shown.bs.modal': @onShown
|
||||||
'hidden.bs.modal': =>
|
'hidden.bs.modal': =>
|
||||||
if @callback
|
if @callback
|
||||||
@callback()
|
@callback()
|
||||||
|
|
|
@ -89,7 +89,7 @@ class Index extends App.ControllerContent
|
||||||
shown: true
|
shown: true
|
||||||
cancel: true
|
cancel: true
|
||||||
container: @el.closest('.content')
|
container: @el.closest('.content')
|
||||||
onComplete: =>
|
onShown: =>
|
||||||
businessHours = new App.BusinessHours
|
businessHours = new App.BusinessHours
|
||||||
hours: @hours
|
hours: @hours
|
||||||
|
|
||||||
|
|
|
@ -1329,7 +1329,7 @@ class slaRef extends App.ControllerContent
|
||||||
shown: true
|
shown: true
|
||||||
cancel: true
|
cancel: true
|
||||||
container: @el
|
container: @el
|
||||||
onComplete: =>
|
onShown: =>
|
||||||
@$('.js-responseTime').timepicker
|
@$('.js-responseTime').timepicker
|
||||||
maxHours: 99
|
maxHours: 99
|
||||||
@$('.js-time').timepicker
|
@$('.js-time').timepicker
|
||||||
|
|
Loading…
Reference in a new issue