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

This commit is contained in:
2016-03-01 14:20:31 +00:00
parent 3732d06a0c
commit 507ba6f2b7
14 changed files with 55 additions and 78 deletions
-15
View File
@@ -1,15 +0,0 @@
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;
});
-13
View File
@@ -1,13 +0,0 @@
define(['jquery', 'underscore', 'backbone'],
function ($, _, Backbone){
var Author=Backbone.Model.extend({
//default attributes
defaults:{
name:''
}
});
return Author;
});
@@ -7,6 +7,7 @@ function ($, _, Backbone){
ricetta_id: "",
titolo: '',
autore: '',
firstImage: "",
valutazione: 0,
difficolta: 0,
categoria_name: 0
+3 -2
View File
@@ -10,7 +10,8 @@ define(['app', 'jquery', 'underscore', 'backbone', 'model/categoryItem/searchIte
this.dataFilter = {
titolo: options.titolo,
difficolta: options.difficolta,
categoryId: options.categoryId
categoryId: options.categoryId,
autore: options.autore
};
this.numItems = options.nResult;
this.indexItems = options.indexItems;
@@ -32,7 +33,7 @@ define(['app', 'jquery', 'underscore', 'backbone', 'model/categoryItem/searchIte
this.numItems +
"/" + this.indexItems +
"/" + this.dataFilter.categoryId +
"/" + this.dataFilter.difficolta;
"/" + this.dataFilter.difficolta+ "/" + this.dataFilter.autore;
if(this.dataFilter.titolo !== null)
u += "/" + this.dataFilter.titolo;
+1
View File
@@ -7,6 +7,7 @@ function ($, _, Backbone){
ricetta_id: "",
titolo: '',
autore: '',
firstImage: "",
valutazione: 0,
difficolta: 0,
categoria_name: 0