Sha256: 5fd416370a6a2b52e1c2cfc3cf60acfc3be1076a4afd79c9a286f5115c38116d

Contents?: true

Size: 357 Bytes

Versions: 10

Compression:

Stored size: 357 Bytes

Contents

# リセット確認ダイアログを表現するビュー
Smalruby.ResetModalView = Backbone.View.extend
  events:
    'click #reset-modal-ok-button': 'onOk'

  initialize: ->
    Smalruby.removeBackdropOnHidden(@$el)

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

  onOk: (e) ->
    Smalruby.reset()
    @$el.modal('hide')

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
smalruby-editor-0.4.1-x86-mingw32 app/assets/javascripts/views/reset_modal_view.js.coffee
smalruby-editor-0.4.2-x86-mingw32 app/assets/javascripts/views/reset_modal_view.js.coffee
smalruby-editor-0.4.2 app/assets/javascripts/views/reset_modal_view.js.coffee
smalruby-editor-0.4.1 app/assets/javascripts/views/reset_modal_view.js.coffee
smalruby-editor-0.4.0-x86-mingw32 app/assets/javascripts/views/reset_modal_view.js.coffee
smalruby-editor-0.4.0 app/assets/javascripts/views/reset_modal_view.js.coffee
smalruby-editor-0.3.5-x86-mingw32 app/assets/javascripts/views/reset_modal_view.js.coffee
smalruby-editor-0.3.5 app/assets/javascripts/views/reset_modal_view.js.coffee
smalruby-editor-0.3.4-x86-mingw32 app/assets/javascripts/views/reset_modal_view.js.coffee
smalruby-editor-0.3.4 app/assets/javascripts/views/reset_modal_view.js.coffee