fully working add series

This commit is contained in:
kay.one 2013-06-30 12:57:26 -07:00
commit 96810c489c
21 changed files with 295 additions and 314 deletions

View file

@ -4,6 +4,7 @@
</div>
<div class="modal-body">
<p>Are you sure you want to delete '{{title}}'?</p>
<p>{{path}}</p>
<div class="series-delete-files">
<label class="checkbox">
@ -15,4 +16,4 @@
<div class="modal-footer">
<button class="btn" data-dismiss="modal">cancel</button>
<button class="btn btn-danger x-confirm-delete">delete</button>
</div>
</div>

View file

@ -4,7 +4,7 @@ define(
'backbone',
'Series/SeriesModel'
], function (Backbone, SeriesModel) {
var collection = Backbone.Collection.extend({
var Collection = Backbone.Collection.extend({
url : window.ApiRoot + '/series',
model: SeriesModel,
@ -18,5 +18,8 @@ define(
}
});
return new collection();
var collection = new Collection();
collection.fetch();
return collection;
});