Store state of history filter

pull/2/head
Mark McDowall 11 years ago
parent 274e2eac86
commit 4478f2d723

@ -88,7 +88,7 @@ define(
onShow: function () { onShow: function () {
this.history.show(new LoadingView()); this.history.show(new LoadingView());
this.collection.fetch(); //this.collection.fetch();
this._showToolbar(); this._showToolbar();
}, },
@ -109,7 +109,7 @@ define(
_showToolbar: function () { _showToolbar: function () {
var filterOptions = { var filterOptions = {
type : 'radio', type : 'radio',
storeState : false, storeState : true,
menuKey : 'history.filterMode', menuKey : 'history.filterMode',
defaultAction : 'all', defaultAction : 'all',
items : items :

@ -48,7 +48,7 @@ define(
number: function (input) { number: function (input) {
if (!input) { if (!input) {
return ''; return '0';
} }
return input.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); return input.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');

Loading…
Cancel
Save