Browse Source

Fixed photo forward search peer

master
Igor Zhukov 10 years ago
parent
commit
2249b80ea5
  1. 3
      app/js/controllers.js
  2. 4
      app/js/directives.js

3
app/js/controllers.js

@ -349,6 +349,9 @@ angular.module('myApp.controllers', []) @@ -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,

4
app/js/directives.js

@ -68,7 +68,7 @@ angular.module('myApp.directives', ['myApp.filters']) @@ -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']) @@ -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) {

Loading…
Cancel
Save