Fix clear history.

This commit is contained in:
Harshal Dhumal
2017-07-07 15:50:56 +01:00
committed by Dave Page
parent fae185ff66
commit fc78202600
4 changed files with 23 additions and 6 deletions

View File

@@ -1325,8 +1325,7 @@ define([
alertify.confirm(gettext("Clear history"),
gettext("Are you sure you wish to clear the history?"),
function() {
// Remove any existing grid first
if (self.history_grid) {
if (self.history_collection) {
self.history_collection.reset();
}
},