Added myLoadThumb cleanup
This commit is contained in:
parent
22cd62c50f
commit
1b815c7126
@ -1013,13 +1013,14 @@ angular.module('myApp.directives', ['myApp.filters'])
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
var cleanup = angular.noop;
|
var cleanup = attrs.watch
|
||||||
// function () {
|
? angular.noop
|
||||||
// setTimeout(function () {
|
: function () {
|
||||||
// $scope.$destroy()
|
setTimeout(function () {
|
||||||
// stopWatching();
|
$scope.$destroy()
|
||||||
// }, 0);
|
stopWatching();
|
||||||
// };
|
}, 0);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
@ -1550,7 +1551,7 @@ angular.module('myApp.directives', ['myApp.filters'])
|
|||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
.directive('myUserLink', function ($window, $timeout, $rootScope, AppUsersManager) {
|
.directive('myUserLink', function ($window, $timeout, $rootScope, AppUsersManager) {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
<img
|
<img
|
||||||
class="user_modal_image"
|
class="user_modal_image"
|
||||||
my-load-thumb
|
my-load-thumb
|
||||||
|
watch="true"
|
||||||
thumb="chatFull.thumb"
|
thumb="chatFull.thumb"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -101,4 +102,4 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<img
|
<img
|
||||||
class="im_dialog_photo"
|
class="im_dialog_photo"
|
||||||
my-load-thumb
|
my-load-thumb
|
||||||
|
watch="true"
|
||||||
thumb="dialogMessage.peerPhoto"
|
thumb="dialogMessage.peerPhoto"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
<a class="navbar-peer-wrap" ng-click="showPeerInfo()">
|
<a class="navbar-peer-wrap" ng-click="showPeerInfo()">
|
||||||
<img
|
<img
|
||||||
my-load-thumb
|
my-load-thumb
|
||||||
|
watch="true"
|
||||||
thumb="historyPeer.photo"
|
thumb="historyPeer.photo"
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
|
@ -206,6 +206,7 @@
|
|||||||
<img
|
<img
|
||||||
class="im_panel_peer_photo"
|
class="im_panel_peer_photo"
|
||||||
my-load-thumb
|
my-load-thumb
|
||||||
|
watch="true"
|
||||||
thumb="historyPeer.photo"
|
thumb="historyPeer.photo"
|
||||||
/>
|
/>
|
||||||
<i class="icon im_panel_peer_online" ng-show="historyPeer.id > 0 && historyPeer.data.status._ == 'userStatusOnline'"></i>
|
<i class="icon im_panel_peer_online" ng-show="historyPeer.id > 0 && historyPeer.data.status._ == 'userStatusOnline'"></i>
|
||||||
@ -214,6 +215,7 @@
|
|||||||
<img
|
<img
|
||||||
class="im_panel_own_photo"
|
class="im_panel_own_photo"
|
||||||
my-load-thumb
|
my-load-thumb
|
||||||
|
watch="true"
|
||||||
thumb="ownPhoto"
|
thumb="ownPhoto"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -263,4 +265,3 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="notify_sound"></div>
|
<div id="notify_sound"></div>
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
<img
|
<img
|
||||||
class="user_modal_image"
|
class="user_modal_image"
|
||||||
my-load-thumb
|
my-load-thumb
|
||||||
|
watch="true"
|
||||||
thumb="photo"
|
thumb="photo"
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user