app/assets/javascripts/luca/containers/modal_view.coffee in luca-0.9.89 vs app/assets/javascripts/luca/containers/modal_view.coffee in luca-0.9.91
- old
+ new
@@ -1,15 +1,15 @@
-_.def("Luca.ModalView").extends("Luca.Container").with
+view = Luca.register "Luca.containers.ModalView"
+view.extends "Luca.Container"
+view.publicConfiguration
closeOnEscape: true
-
showOnInitialize: false
-
backdrop: false
+ className: "modal"
- className: "luca-ui-container modal"
-
+view.publicMethods
container: ()->
$('body')
toggle: ()->
@$el.modal('toggle')
@@ -25,12 +25,12 @@
@$el.addClass 'fade' if @fade is true
$('body').append( @$el )
@$el.modal
- backdrop: @backdrop is true
- keyboard: @closeOnEscape is true
- show: @showOnInitialize is true
+ backdrop: !!(@backdrop is true)
+ keyboard: !!(@closeOnEscape is true)
+ show: !!(@showOnInitialize is true)
@
-_.def("Luca.containers.ModalView").extends("Luca.ModalView").with()
\ No newline at end of file
+view.register()