Sha256: f1f4bd4e7199a9786a56f9420cf4d04aa02d6ea932ec1c450f3f4efe71203dd8

Contents?: true

Size: 632 Bytes

Versions: 3

Compression:

Stored size: 632 Bytes

Contents

_.def("Luca.ModalView").extends("Luca.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

3 entries across 3 versions & 1 rubygems

Version Path
luca-0.9.899 app/assets/javascripts/luca/containers/modal_view.coffee
luca-0.9.89 app/assets/javascripts/luca/containers/modal_view.coffee
luca-0.9.8 app/assets/javascripts/luca/containers/modal_view.coffee