Sha256: d34c18f9c8f85932eadd4d1c7dbd815fc04531a87c667fd2aac7cc5fe847369c

Contents?: true

Size: 475 Bytes

Versions: 5

Compression:

Stored size: 475 Bytes

Contents

class Tao.Popover.Confirm extends Tao.Popover.Element

  @tag 'tao-confirm-popover'

  _connected: ->
    super

    @on 'click', '.button-confirm', (e) =>
      @trigger 'tao:confirm'
      @active = false
      null

    @on 'click', '.button-cancel', (e) =>
      @trigger 'tao:cancel'
      @active = false
      null

  setContent: (content) ->
    @jq.find('.tao-popover-content .message').empty()
      .append content
    @

TaoComponent.register Tao.Popover.Confirm

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tao_ui-0.2.9 lib/assets/javascripts/tao/ui/popover/confirm.coffee
tao_ui-0.2.8 lib/assets/javascripts/tao/ui/popover/confirm.coffee
tao_ui-0.2.7 lib/assets/javascripts/tao/ui/popover/confirm.coffee
tao_ui-0.2.6 lib/assets/javascripts/tao/ui/popover/confirm.coffee
tao_ui-0.2.5 lib/assets/javascripts/tao/ui/popover/confirm.coffee