Sha256: e55b1100434c52ef15093c63ae863e3e1ef97be820a41d38c9bc25866ef2221d
Contents?: true
Size: 724 Bytes
Versions: 1
Compression:
Stored size: 724 Bytes
Contents
$(document).ready -> Manager.Views.Reports.IndexItem = Backbone.Marionette.ItemView.extend template: '#manager_reports_index_item-template' model: Manager.Models.Gallery events: 'click a.expand-link': 'expand' initialize: (item) -> _.bindAll @, 'expand' @is_expanded = false expand: -> if @is_expanded @is_expanded = false $( '.body-content', @el ).hide( 500 ) else @is_expanded = true $('.body-content', @el).show( 500 ) # # collections # Manager.Views.Reports.Index = Backbone.Marionette.CollectionView.extend itemView: Manager.Views.Reports.IndexItem initialize: (item) -> @collection = U.collections.reports
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ish_lib-0.0.3 | app/assets/javascripts/trash/manager/views/reports.coffee |