Sha256: 78d1c3af1e95c3552135dece62c3f150a8c30ae025c6c344377d0edda65448b6

Contents?: true

Size: 637 Bytes

Versions: 6

Compression:

Stored size: 637 Bytes

Contents

_.def("Luca.ModalView").extends("Luca.core.Container").with

  closeOnEscape: true

  showOnInitialize: false

  backdrop: false

  className: "luca-ui-container modal"

  container: ()->
    $('body')

  toggle: ()->
    @$el.modal('toggle')

  show: ()->
    @$el.modal('show')

  hide: ()->
    @$el.modal('hide')

  render: ()->
    @$el.addClass 'modal'
    @$el.addClass 'fade' if @fade is true

    $('body').append( @$el )
    
    @$el.modal
      backdrop: @backdrop is true
      keyboard: @closeOnEscape is true
      show: @showOnInitialize is true

    @

_.def("Luca.containers.ModalView").extends("Luca.ModalView").with()

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
luca-0.9.76 src/containers/modal_view.coffee
luca-0.9.7 src/containers/modal_view.coffee
luca-0.9.65 src/containers/modal_view.coffee
luca-0.9.6 src/containers/modal_view.coffee
luca-0.9.42 src/containers/modal_view.coffee
luca-0.9.4 src/containers/modal_view.coffee