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'])
.appendTo('body') .appendTo('body')
.on('load', function () { .on('load', function () {
twttr.events.bind('loaded', function (event) { twttr.events.bind('loaded', function (event) {
console.log('loaded');
for (var i = 0; i < twitterPendingWidgets.length; i++) { for (var i = 0; i < twitterPendingWidgets.length; i++) {
twitterPendingWidgets[i].$emit('ui_height'); twitterPendingWidgets[i].$emit('ui_height');
} }

2
app/js/services.js

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

Loading…
Cancel
Save