Sha256: aa5a93a4555468d1951ad639ad8ca380c9d9c912199e9cd4b42d2f398890041e

Contents?: true

Size: 280 Bytes

Versions: 5

Compression:

Stored size: 280 Bytes

Contents

ObserveJS.bind 'Post.Tags', class
  loaded: =>
    @on 'tags:toggle', document, @refresh
    @on 'tags:create', document, @refresh
    @on 'tags:index', @show

  refresh: (e) =>
    @element().innerHTML = e.TagsHTML.innerHTML

  show: (e) =>
    document.body.appendChild(e.HTML)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecrire-0.30.3 lib/ecrire/app/assets/javascripts/admin/posts/tags.coffee
ecrire-0.30.2 lib/ecrire/app/assets/javascripts/admin/posts/tags.coffee
ecrire-0.30.1 lib/ecrire/app/assets/javascripts/admin/posts/tags.coffee
ecrire-0.30.0 lib/ecrire/app/assets/javascripts/admin/posts/tags.coffee
ecrire-0.29.0 lib/ecrire/app/assets/javascripts/admin/posts/tags.coffee