From 4478f2d723d85ea02c60fc588cc4204822f3aae2 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 26 Feb 2014 08:58:42 -0800 Subject: [PATCH] Store state of history filter --- src/UI/History/Table/HistoryTableLayout.js | 4 ++-- src/UI/Shared/FormatHelpers.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/UI/History/Table/HistoryTableLayout.js b/src/UI/History/Table/HistoryTableLayout.js index 9ae911de0..3bfd2efb0 100644 --- a/src/UI/History/Table/HistoryTableLayout.js +++ b/src/UI/History/Table/HistoryTableLayout.js @@ -88,7 +88,7 @@ define( onShow: function () { this.history.show(new LoadingView()); - this.collection.fetch(); + //this.collection.fetch(); this._showToolbar(); }, @@ -109,7 +109,7 @@ define( _showToolbar: function () { var filterOptions = { type : 'radio', - storeState : false, + storeState : true, menuKey : 'history.filterMode', defaultAction : 'all', items : diff --git a/src/UI/Shared/FormatHelpers.js b/src/UI/Shared/FormatHelpers.js index ac23b473f..51e93cf5a 100644 --- a/src/UI/Shared/FormatHelpers.js +++ b/src/UI/Shared/FormatHelpers.js @@ -48,7 +48,7 @@ define( number: function (input) { if (!input) { - return ''; + return '0'; } return input.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');