diff --git a/Mongoman/app/assets/javascripts/routes/documents_route.js b/Mongoman/app/assets/javascripts/routes/documents_route.js index 91a81fa..62eb345 100644 --- a/Mongoman/app/assets/javascripts/routes/documents_route.js +++ b/Mongoman/app/assets/javascripts/routes/documents_route.js @@ -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) + } });