Sha256: b2aa79443837315216cde11b1c66e32c8e97125b8f844f47a01f4c9bff0b3dcc

Contents?: true

Size: 440 Bytes

Versions: 76

Compression:

Stored size: 440 Bytes

Contents

class window.ReadMoreView

  constructor: (readMoreElem)->
    @readMoreElem = readMoreElem
    @readMoreElem.on 'show', @handleShow
    @readMoreElem.on 'hide', @handleClose
    @readMoreElem.find('.button-read-more').on 'click', @handleClick

  handleShow: (e) =>
    @readMoreElem.addClass('is-open')

  handleClose: (e) =>
    @readMoreElem.removeClass('is-open')

  handleClick: (e) =>
    if e.preventDefault
      e.preventDefault()

Version data entries

76 entries across 76 versions & 2 rubygems

Version Path
kuhsaft-2.2.1 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-2.2.0 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-2.1.2 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-2.1.1 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-2.1.0 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-1.8.6 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-1.8.5 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-2.0.3 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-2.0.2 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-1.8.4 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-1.8.1 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-2.0.1 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-2.0.0 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-1.8.0 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-1.7.1 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-1.7.0 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-1.6.0 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-1.5.0 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-1.4.3 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee
kuhsaft-1.4.2 app/assets/javascripts/kuhsaft/views/read_more_view.js.coffee