From ffce325edbe858d698456df04058e5e119c5a938 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 1 Sep 2013 12:51:50 -0700 Subject: [PATCH] Logs won't throw when cleared from a page past page 1 --- UI/Logs/Layout.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/Logs/Layout.js b/UI/Logs/Layout.js index 698181201..807ca580e 100644 --- a/UI/Logs/Layout.js +++ b/UI/Logs/Layout.js @@ -98,7 +98,7 @@ define( successMessage : 'Logs have been cleared', errorMessage : 'Failed to clear logs', ownerContext : this, - onSuccess: this._refreshLogs + onSuccess : this._refreshLogs }, { @@ -119,6 +119,7 @@ define( }, _refreshLogs: function () { + this.collection.state.currentPage = 1; this.collection.fetch({ reset: true }); this._showTable(); }