code cleanup.

This commit is contained in:
kay.one
2013-02-15 00:18:42 -08:00
parent 1f94e2b55f
commit cda53cfd3a
17 changed files with 1134 additions and 130 deletions

View File

@@ -27,7 +27,7 @@ define(['app', 'AddSeries/RootFolders/RootFolderCollection', 'Shared/AutoComplet
itemView: NzbDrone.AddSeries.RootFolderItemView,
tagName: 'table',
className: 'table table-hover',
className: 'table table-hover'
});
NzbDrone.AddSeries.RootDirView = Backbone.Marionette.Layout.extend({
@@ -39,17 +39,17 @@ define(['app', 'AddSeries/RootFolders/RootFolderCollection', 'Shared/AutoComplet
},
regions: {
currentDirs: '#current-dirs',
currentDirs: '#current-dirs'
},
events: {
'click .x-add': 'addFolder',
'click .x-add': 'addFolder'
},
onRender: function () {
this.collection = rootFolders,
this.collection = rootFolders;
this.currentDirs.show(new NzbDrone.AddSeries.RootDirListView({ collection: this.collection }));
this.ui.pathInput.folderAutoComplete();
},
@@ -78,11 +78,11 @@ define(['app', 'AddSeries/RootFolders/RootFolderCollection', 'Shared/AutoComplet
context.collection.reset();
} else {
console.log(term);
context.collection.fetch({ data: $.param({ term: term }) });
context.collection.fetch({ data: { term: term } });
}
},
}
});
});