o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1350056763.692499: @value"w{I" class:EFI"ProcessedAsset;FI"logical_path;FI" books.js;FI" pathname;FI"*$root/app/assets/javascripts/books.js;FI"content_type;FI"application/javascript;FI" mtime;FI"2012-10-12T17:46:03+02:00;FI" length;FiçI" digest;F"%9152bb7c96444bb421aa481f5b11b281I" source;FI"ç// Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. var Book = Backbone.Model.extend({ }); var BooksCollection = Tableling.Collection.extend({ url: '/books/page' }); var NoBookRow = Backbone.Marionette.ItemView.extend({ tagName: 'tr', className: 'empty', template: 'booksTableEmptyRow' }); var BookRow = Backbone.Marionette.ItemView.extend({ tagName: 'tr', template: 'booksTableRow', ui : { title: '.title', author: '.author' }, onRender : function() { this.ui.title.text(this.model.get('title')); this.ui.author.text(this.model.get('author')); } }); var BooksTableView = Tableling.Bootstrap.TableView.extend({ itemView: BookRow, emptyView: NoBookRow, itemViewContainer: 'tbody', initialize : function(options) { Tableling.Bootstrap.TableView.prototype.initialize.call(this, options); this.on('composite:rendered', this.clearLoading, this); }, clearLoading : function() { this.$el.find('tr.loading').remove(); } }); var BooksTable = Tableling.Bootstrap.Table.extend({ tableView : BooksTableView, tableViewOptions : { template: 'booksTableView', collection: new BooksCollection({ model: Book }) } }); $(function() { var table = new BooksTable({ tableling: { pageSize: 5, request: { type: 'POST' } } }); new Backbone.Marionette.Region({ el: '#books' }).show(table); }); ;FI"dependency_digest;F"%be0fac6b570dbe79bf572d6c22990ce4I"required_paths;F[I"*$root/app/assets/javascripts/books.js;FI"dependency_paths;F[{I" path;FI"*$root/app/assets/javascripts/books.js;FI" mtime;FI"2012-10-12T17:46:03+02:00;FI" digest;F"%9152bb7c96444bb421aa481f5b11b281I" _version;F"%9f3b95dd7ea3030dc35985c0a8020862