Permalink
Browse files

trigger 'searchStart' _after_clearing grid

fixes DAQ-102
  • Loading branch information...
1 parent 46d3708 commit 64304031c80a38deff7eff50d49c456d3d056767 @aaronj1335 aaronj1335 committed Jan 4, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/widgets/powergrid/powergridsearch.js
@@ -70,11 +70,13 @@ define([
return;
}
self.propagate('disable');
- self.trigger('searchStarted');
params = self._makeQueryParams();
self._filtered = !!params.query;
- return collection.reset(params).load().always(function() {
+ collection.reset(params);
+ self.trigger('searchStarted');
+
+ return collection.load().always(function() {
self.propagate('enable');
self.trigger('searchCompleted');

0 comments on commit 6430403

Please sign in to comment.