git-svn-id: https://msi/svn/firstRepo/WebClient/branches/NewRelease@58 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
define(['app', 'jquery', 'underscore', 'backbone', 'model/authors/authorModel'],
|
||||
function (app, $, _, Backbone, Author) {
|
||||
|
||||
var Authors = Backbone.Collection.extend({
|
||||
// Book is the model of the collection
|
||||
model: Author,
|
||||
url: function () {
|
||||
return myManifest.Settings.DefaultURL + "/api/ricette/authors";
|
||||
}
|
||||
});
|
||||
|
||||
return Authors;
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
define(['jquery', 'underscore', 'backbone'],
|
||||
function ($, _, Backbone){
|
||||
|
||||
var Author=Backbone.Model.extend({
|
||||
//default attributes
|
||||
defaults:{
|
||||
name:''
|
||||
}
|
||||
});
|
||||
|
||||
return Author;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user