git-svn-id: https://msi/svn/firstRepo/WebClient/branches/NewRelease@71 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ function ($, _, Backbone){
|
||||
ricetta_id: "",
|
||||
titolo: '',
|
||||
autore: '',
|
||||
firstImage: "",
|
||||
valutazione: 0,
|
||||
difficolta: 0,
|
||||
categoria_name: 0
|
||||
|
||||
Reference in New Issue
Block a user