Remove model-open class if App.ControllerModalLoading class is used without container.
This commit is contained in:
parent
12eb5381b0
commit
8831b57b9b
1 changed files with 8 additions and 2 deletions
|
@ -260,11 +260,14 @@ class App.ControllerModalLoading extends App.Controller
|
||||||
|
|
||||||
@render()
|
@render()
|
||||||
|
|
||||||
@el.modal
|
@el.modal(
|
||||||
keyboard: false
|
keyboard: false
|
||||||
show: true
|
show: true
|
||||||
backdrop: 'static'
|
backdrop: 'static'
|
||||||
container: @container
|
container: @container
|
||||||
|
).on(
|
||||||
|
'hidden.bs.modal': @localOnClosed
|
||||||
|
)
|
||||||
|
|
||||||
render: ->
|
render: ->
|
||||||
@html App.view('generic/modal_loader')(
|
@html App.view('generic/modal_loader')(
|
||||||
|
@ -283,9 +286,12 @@ class App.ControllerModalLoading extends App.Controller
|
||||||
showIcon: =>
|
showIcon: =>
|
||||||
@$('.js-loadingIcon').removeClass('hide')
|
@$('.js-loadingIcon').removeClass('hide')
|
||||||
|
|
||||||
|
localOnClosed: =>
|
||||||
|
@el.remove()
|
||||||
|
|
||||||
hide: (delay) =>
|
hide: (delay) =>
|
||||||
remove = =>
|
remove = =>
|
||||||
@el.remove()
|
@el.modal('hide')
|
||||||
if !delay
|
if !delay
|
||||||
remove()
|
remove()
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue