From 85fdc860475745ba3b65afc49593661975de256d Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 9 Jul 2015 13:47:04 +0300 Subject: [PATCH] Improved peer-photolink perf --- app/js/directives.js | 2 +- app/less/desktop.less | 2 +- app/partials/desktop/im.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/js/directives.js b/app/js/directives.js index f610098e..b6dabd93 100755 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -2653,7 +2653,6 @@ angular.module('myApp.directives', ['myApp.filters']) }; function link($scope, element, attrs) { - element.addClass('peer_photo_init'); var peerID, peer, peerPhoto; @@ -2729,6 +2728,7 @@ angular.module('myApp.directives', ['myApp.filters']) } $scope.$watch(attrs.myPeerPhotolink, setPeerID); + setPeerID($scope.$eval(attrs.myPeerPhotolink)); if (attrs.watch) { $scope.$on('user_update', function (e, updUserID) { diff --git a/app/less/desktop.less b/app/less/desktop.less index a7cc9d60..46aebdd1 100644 --- a/app/less/desktop.less +++ b/app/less/desktop.less @@ -1291,7 +1291,7 @@ a.im_panel_peer_photo .peer_initials { &_form_wrap { a.im_panel_own_photo, a.im_panel_peer_photo { - margin-top: 47px; + margin-top: 41px; } } diff --git a/app/partials/desktop/im.html b/app/partials/desktop/im.html index 3f9d7759..d31ea971 100644 --- a/app/partials/desktop/im.html +++ b/app/partials/desktop/im.html @@ -168,7 +168,7 @@
- +