- Reset before applying filters, not after

- Use applyFilters() to change filters instead of directly modifying
This commit is contained in:
Nathan Gray 2014-01-21 09:41:19 +00:00
parent 95b51fefea
commit e73eeab637

View File

@ -1102,9 +1102,9 @@ app.classes.mail = AppJS.extend(
var nm = _widget.getRoot().getWidgetById(this.nm_index); var nm = _widget.getRoot().getWidgetById(this.nm_index);
if(nm) if(nm)
{ {
nm.activeFilters['selectedFolder'] = folder;
// Changing dataset entirely, force a reset // Changing dataset entirely, force a reset
nm.controller.reset(); nm.controller.reset();
nm.applyFilters({'selectedFolder': folder});
} }
displayname = _widget.getSelectedLabel(); displayname = _widget.getSelectedLabel();
inBraket = displayname.search(/\(/); inBraket = displayname.search(/\(/);