From 2249b80ea5d796c17d0fff083dacf719260526d9 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Fri, 27 Jun 2014 21:52:24 +0400 Subject: [PATCH] Fixed photo forward search peer --- app/js/controllers.js | 3 +++ app/js/directives.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/js/controllers.js b/app/js/controllers.js index 67dc0693..94db84ba 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -349,6 +349,9 @@ angular.module('myApp.controllers', []) if ($scope.search === undefined) { $scope.search = {}; } + if ($scope.isEmpty === undefined) { + $scope.isEmpty = {}; + } $scope.phonebookAvailable = PhonebookContactsService.isAvailable(); var offset = 0, diff --git a/app/js/directives.js b/app/js/directives.js index 22fb0d53..e1feebca 100644 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -68,7 +68,7 @@ angular.module('myApp.directives', ['myApp.filters']) $scope.$on('dialogs_search_toggle', function () { $(panelWrap).addClass('im_dialogs_panel_search'); $scope.$broadcast('ui_dialogs_search'); - $($window).scrollTop(0); + $($window).scrollTop(0); $timeout(function () { searchField.focus(); }) @@ -1348,7 +1348,7 @@ angular.module('myApp.directives', ['myApp.filters']) var onKeyDown = function (event) { var target = event.target; if (target && (target.tagName == 'INPUT' || target.tagName == 'TEXTAREA')) { - return false; + return; } switch (event.keyCode) {