Skip to content

Commit

Permalink
Reversed the order of updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladi Adenusi andela-ladenusi committed Jul 13, 2015
1 parent 1d221b8 commit 1720a00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/js/controllers/mainCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ angular.module('kanoevents.controllers')
request.data = JSON.stringify(payload);

// update view
$scope.updates.push( payload.text );
$scope.updates.unshift( payload.text );

$http(request)
.success(function (data, status, headers, config) {
Expand Down
2 changes: 1 addition & 1 deletion public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ angular.module('kanoevents.controllers')
request.data = JSON.stringify(payload);

// update view
$scope.updates.push( payload.text );
$scope.updates.unshift( payload.text );

$http(request)
.success(function (data, status, headers, config) {
Expand Down

0 comments on commit 1720a00

Please sign in to comment.