Skip to content

Commit

Permalink
clear 'searching' flag on exit from the documents route.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrishikeshs committed Jan 25, 2014
1 parent 22c5687 commit a31feb5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Mongoman/app/assets/javascripts/routes/documents_route.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ Mongoman.DocumentsRoute = Ember.Route.extend({
},

deactivate: function() {
this.controllerFor('documents').set('content', [])
this.controllerFor('documents').set('documentCount', 0)
var controller = this.controllerFor('documents')
controller.set('content', [])
controller.set('documentCount', 0)
controller.set('searching', false)

}

});

0 comments on commit a31feb5

Please sign in to comment.