Skip to content

Commit

Permalink
Merge pull request #22 from vineetasharma/master
Browse files Browse the repository at this point in the history
Fixed issue: #1554
  • Loading branch information
DanielHindi committed Jan 29, 2016
2 parents 5fbaa6e + de7425c commit 46134e5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions test/widget/controllers/widget.wall.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ describe('Unit : Controller - WidgetWallCtrl', function () {
this.auth = jasmine.createSpyObj('auth', ['getCurrentUser', 'login','onLogin','onLogout']);
this.navigation = jasmine.createSpyObj('navigation', ['get', 'onUpdate']);
this.messaging = jasmine.createSpyObj('messaging', ['get', 'onUpdate','sendMessageToControl']);
this.getContext=function(){};

});
}));
Expand Down
2 changes: 1 addition & 1 deletion widget/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
$rootScope.$digest();
}
else
Buildfire.navigation.navigateHome();
Buildfire.navigation._goBackOne();
}
}])
.directive('handlePhoneSubmit', function () {
Expand Down
2 changes: 1 addition & 1 deletion widget/app.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
if (_this.busy) {
return;
}
_this.busy = true;
if (_this.parentThreadId && _this.socialAppId) {
console.log('Inside if---------------------------------------this', _this);
getPosts();
Expand Down Expand Up @@ -452,7 +453,6 @@
}
function getPosts(){
console.log('getPosts called');
_this.busy = true;
var postDataObject = {};
postDataObject.id = '1';
postDataObject.method = 'thread/findByPage';
Expand Down
2 changes: 1 addition & 1 deletion widget/controllers/widget.wall.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
WidgetWall.SocialItems = SocialItems.getInstance();
var masterItems = WidgetWall.SocialItems && WidgetWall.SocialItems.items && WidgetWall.SocialItems.items.slice(0,WidgetWall.SocialItems.items.length);
console.log('SocialItems------------------Wall Controller-------------------- this---------------333333333333----', WidgetWall.SocialItems);
//SocialItems.posts();
WidgetWall.SocialItems.posts();
WidgetWall.SocialItems.loggedInUserDetails();

WidgetWall.createPost = function ($event) {
Expand Down
2 changes: 1 addition & 1 deletion widget/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<a ng-click="WidgetWall.followUnfollow(WidgetWall.getFollowingStatus())" >{{WidgetWall.getFollowingStatus()}}</a>
</div>
<div style="overflow-x:hidden; width:100%; overflow-y: auto;height: calc(100% - 48px);" class="infinite-scroll-parent">
<div id="top" infinite-scroll-distance="0"
<div style="height: 20px;" id="top" infinite-scroll-distance="0"
data-infinite-container=".infinite-scroll-parent"
infinite-scroll="WidgetWall.SocialItems.posts()"
infinite-scroll-disabled="WidgetWall.SocialItems.busy">
Expand Down

0 comments on commit 46134e5

Please sign in to comment.