Browse Source

Search bugfixes

master
Igor Zhukov 10 years ago
parent
commit
4fec64088e
  1. 3
      app/js/controllers.js

3
app/js/controllers.js

@ -355,6 +355,9 @@ angular.module('myApp.controllers', []) @@ -355,6 +355,9 @@ angular.module('myApp.controllers', [])
var prevMessages = false;
$scope.$watchCollection('search', function () {
if ($scope.search.messages && (!angular.isString($scope.search.query) || !$scope.search.query.length)) {
prevMessages = $scope.search.messages = false;
}
if ($scope.search.messages != prevMessages) {
prevMessages = $scope.search.messages;
$scope.dialogs = [];

Loading…
Cancel
Save