Browse Source

Fixed deleted user num

master
Igor Zhukov 10 years ago
parent
commit
c1fbd7ca13
  1. 1
      app/js/directives.js
  2. 2
      app/js/services.js

1
app/js/directives.js

@ -217,7 +217,6 @@ angular.module('myApp.directives', ['myApp.filters']) @@ -217,7 +217,6 @@ angular.module('myApp.directives', ['myApp.filters'])
.appendTo('body')
.on('load', function () {
twttr.events.bind('loaded', function (event) {
console.log('loaded');
for (var i = 0; i < twitterPendingWidgets.length; i++) {
twitterPendingWidgets[i].$emit('ui_height');
}

2
app/js/services.js

@ -115,7 +115,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) @@ -115,7 +115,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
if (angular.isObject(id)) {
return id;
}
return users[id] || {id: id, deleted: true};
return users[id] || {id: id, deleted: true, num: 1};
}
function hasUser(id) {

Loading…
Cancel
Save