Sha256: cc089fe05413cdde6428186808fa551d4095865f63ec29e0e0bea4ff57d85ac9

Contents?: true

Size: 427 Bytes

Versions: 11

Compression:

Stored size: 427 Bytes

Contents

var FileListView    = Backbone.View.extend({
    tagName: 'ul', 
    className: 'thumbnails',
    render: function(){
        this.$el.html('');
        this.collection.forEach(this.addOne, this);
        //$('[id^=popover]').popover({trigger:'click'});
        return this;
    },
    addOne: function(fileItem){
        var fileView = new FileView({model: fileItem});
        this.$el.append(fileView.render().el);
    }

});

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
mix-rails-0.12.1 mix-rails-albums/app/assets/javascripts/views/filelistview.js
mix-rails-albums-0.12.1 app/assets/javascripts/views/filelistview.js
mix-rails-albums-0.11.0 app/assets/javascripts/views/filelistview.js
mix-rails-0.10.4 mix-rails-albums/app/assets/javascripts/views/filelistview.js
mix-rails-albums-0.10.4 app/assets/javascripts/views/filelistview.js
mix-rails-0.10.3 mix-rails-albums/app/assets/javascripts/views/filelistview.js
mix-rails-albums-0.10.3 app/assets/javascripts/views/filelistview.js
mix-rails-albums-0.10.2 app/assets/javascripts/views/filelistview.js
mix-rails-0.7.0 albums/app/assets/javascripts/views/filelistview.js
mix-rails-0.6.0 albums/app/assets/javascripts/views/filelistview.js
mix-rails-0.5.0 albums/app/assets/javascripts/views/filelistview.js