improved user modal
This commit is contained in:
parent
8d4ce0d3c5
commit
6f92f4f895
@ -513,6 +513,7 @@ angular.module('myApp.directives', ['myApp.filters'])
|
|||||||
}
|
}
|
||||||
|
|
||||||
scope.$watchCollection('thumb.location', function (newLocation) {
|
scope.$watchCollection('thumb.location', function (newLocation) {
|
||||||
|
// console.log('new loc', newLocation, arguments);
|
||||||
var counterSaved = ++counter;
|
var counterSaved = ++counter;
|
||||||
if (!newLocation || newLocation.empty) {
|
if (!newLocation || newLocation.empty) {
|
||||||
element.attr('src', scope.thumb && scope.thumb.placeholder || 'img/blank.gif');
|
element.attr('src', scope.thumb && scope.thumb.placeholder || 'img/blank.gif');
|
||||||
|
@ -277,15 +277,7 @@ angular.module('myApp.services', [])
|
|||||||
templateUrl: 'partials/user_modal.html?2',
|
templateUrl: 'partials/user_modal.html?2',
|
||||||
controller: 'UserModalController',
|
controller: 'UserModalController',
|
||||||
scope: scope,
|
scope: scope,
|
||||||
windowClass: 'user_modal_window',
|
windowClass: 'user_modal_window'
|
||||||
resolve: {
|
|
||||||
userFull: MtpApiManager.invokeApi('users.getFullUser', {
|
|
||||||
id: getUserInput(userID)
|
|
||||||
}).then(function (result) {
|
|
||||||
saveApiUser(result.user);
|
|
||||||
return result;
|
|
||||||
})
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user