git-svn-id: https://msi/svn/firstRepo/WebClient/trunk@13 0f545695-f87b-41b6-9a03-7f16563b5454

This commit is contained in:
2014-12-10 14:58:10 +00:00
parent 90e0252f4b
commit 876ee18579
238 changed files with 35068 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
define(['app', 'jquery', 'underscore', 'backbone', 'model/note/noteModel', 'classes/profile'],
function (app, $, _, Backbone, Note, Profile){
var Notes=Backbone.Collection.extend({
// Book is the model of the collection
model:Note,
url: function() {
return myManifest.Settings.DefaultURL + "/api/profile/" + Profile.getKeySave() + "/ricette";
}
});
return Notes;
});
+18
View File
@@ -0,0 +1,18 @@
define(['jquery', 'underscore', 'backbone'],
function ($, _, Backbone){
var Note=Backbone.Model.extend({
//default attributes
idAttribute: "ricetta_id",
defaults:{
ricetta_id: "",
titolo: '',
autore: '',
valutazione: 0,
difficolta: 0
}
});
return Note;
});