Commit 706a8184 authored by alexandre's avatar alexandre

Removed old filter view

parent e646d334
......@@ -1818,22 +1818,6 @@ window.W = window.W || {};
});
W.FilterView = Backbone.Marionette.View.extend({
template: '#filters-template',
triggers: {
'click a': 'filter',
},
onFilter: function (view, event) {
console.log(event);
this.collection.queryParams.score_type = $(event.currentTarget).data('value');
// this.collection.queryParams.score_type = e.val();
this.collection.fetch();
},
});
W.CreateView = Backbone.Marionette.View.extend({
template: '#create-template',
......@@ -1893,20 +1877,6 @@ window.W = window.W || {};
collection: scoreCollection
});
var myFilterView = new W.FilterView({
collection: scoreCollection
});
// ServerSideFilter delegates the searching to the server by submitting a query.
// var serverSideFilter = new Backgrid.Extension.ServerSideFilter({
// collection: scoreCollection,
// // the name of the URL query parameter
// name: "score_type",
// placeholder: "ex: location:your country" // HTML5 placeholder for the search box
// });
// $("body").before(serverSideFilter.render().el);
var mySearchView = new W.SearchView({
collection: scoreCollection
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment