[#34,view][s]: query state in url (store into and read from).

* Also change so that query values are not automatically JSON.stringify-ied (bad idea since it leads to repeated jsonification of same value ...)
This commit is contained in:
Rufus Pollock
2012-03-14 19:45:28 +00:00
parent 58c06e5ad7
commit 733a9d3275
4 changed files with 13 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ my.Dataset = Backbone.Model.extend({
query: function(queryObj) {
this.trigger('query:start');
var self = this;
this.queryState.set(queryObj, {silent: true});
this.queryState.set(queryObj);
var dfd = $.Deferred();
this.backend.query(this, this.queryState.toJSON()).done(function(rows) {
var docs = _.map(rows, function(row) {