git-svn-id: https://msi/svn/firstRepo/WebClient/branches/Manut_3.0.1@71 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
@@ -9,9 +9,6 @@ define(['jquery', 'underscore', 'backbone','text!modules/search/searchViewTempla
|
||||
this.id = "SearchView";
|
||||
var self = this;
|
||||
SearchView.__super__.initialize.call(this);
|
||||
this.collection = options.collection;
|
||||
this.collection.fetch({ success: function () { self.render(); } });
|
||||
//this.header.title = "pippo";
|
||||
},
|
||||
|
||||
events: {
|
||||
@@ -21,6 +18,7 @@ define(['jquery', 'underscore', 'backbone','text!modules/search/searchViewTempla
|
||||
performSearch: function (e) {
|
||||
e.preventDefault();
|
||||
var titolo = $('#titolo').val();
|
||||
var autore = $('#autore').val();
|
||||
var categoria = $('#categoria').val();
|
||||
var nResult = $('#nResult').val();
|
||||
var diffi = $('#difficoltaFrm').serialize();
|
||||
@@ -28,7 +26,10 @@ define(['jquery', 'underscore', 'backbone','text!modules/search/searchViewTempla
|
||||
if (diffi === "") {
|
||||
diffi = "0";
|
||||
}
|
||||
Backbone.history.navigate('search/' + nResult + "/"+ categoria + "/" + diffi + "/" + titolo, { trigger: true });
|
||||
if (autore === "" || autore == undefined) {
|
||||
autore = "_";
|
||||
}
|
||||
Backbone.history.navigate('search/' + nResult + "/"+ categoria + "/" + diffi + "/" + autore + "/"+titolo, { trigger: true });
|
||||
},
|
||||
|
||||
onShowed: function(){
|
||||
|
||||
Reference in New Issue
Block a user