mirror of https://github.com/Radarr/Radarr
48 lines
1.1 KiB
JavaScript
48 lines
1.1 KiB
JavaScript
var Marionette = require('marionette');
|
|
var ListItemView = require('./ListItemView');
|
|
var vent = require('vent');
|
|
|
|
module.exports = Marionette.CollectionView.extend({
|
|
itemView : ListItemView,
|
|
|
|
ui : {
|
|
loadingList : '.x-loading-list'
|
|
},
|
|
|
|
initialize : function() {
|
|
|
|
},
|
|
|
|
showCollection : function() {
|
|
},
|
|
//
|
|
// appendHtml : function(collectionView, itemView, index) {
|
|
// collectionView.ui.loadingFolders.before(itemView.el);
|
|
// },
|
|
//
|
|
// _showAndSearch : function(index) {
|
|
// var self = this;
|
|
// var model = this.collection.at(index);
|
|
//
|
|
// if (model) {
|
|
// var currentIndex = index;
|
|
// var folderName = model.get('folder').name;
|
|
// this.addItemView(model, this.getItemView(), index);
|
|
// this.children.findByModel(model).search({ term : folderName }).always(function() {
|
|
// if (!self.isClosed) {
|
|
// self._showAndSearch(currentIndex + 1);
|
|
// }
|
|
// });
|
|
// }
|
|
//
|
|
// else {
|
|
// this.ui.loadingFolders.hide();
|
|
// }
|
|
// },
|
|
//
|
|
// itemViewOptions : {
|
|
// isExisting : true
|
|
// }
|
|
|
|
});
|