Advertisement
Guest User

Untitled

a guest
May 28th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. (function () {
  2. 'use strict';
  3.  
  4. function TasksCtrl($scope) {
  5.  
  6. // Events from toggle button
  7. $scope.$on('toggleRight', function () {
  8. Tasks
  9. .all(locationId, taskboardId)
  10. .then(function(result){assignTasks(result,'recent')});
  11. });
  12. $scope.$on('toggleLeft', function () {
  13. Tasks
  14. .all(locationId, taskboardId)
  15. .then(assignTasks);
  16. });
  17.  
  18. }
  19.  
  20. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement