{:uriI"file:///Volumes/DATA/Users/goooseman/Programing/gems/todo_rails/app/assets/javascripts/todo_rails/controllers/todoCtrl.coffee?type=application/javascript&pipeline=self&id=61f49b31ede4c03a9d5cd937c07b519b6c7857f37397d2858b293e0618b7c3ac:ET:load_pathI"T/Volumes/DATA/Users/goooseman/Programing/gems/todo_rails/app/assets/javascripts;F: filenameI"{/Volumes/DATA/Users/goooseman/Programing/gems/todo_rails/app/assets/javascripts/todo_rails/controllers/todoCtrl.coffee;T: nameI"$todo_rails/controllers/todoCtrl;T:logical_pathI",todo_rails/controllers/todoCtrl.self.js;T:content_typeI"application/javascript;T: sourceI"(function() { angular.module('todoRails.controllers').controller('todoCtrl', [ '$scope', 'Restangular, $mdDialog', function($scope, Restangular, $mdDialog) { var todos; todos = Restangular.all('tasks'); $scope.saveTodo = function(todo) { return todo.save(); }; $scope.deleteItem = function(todo) { var confirm; confirm = $mdDialog.confirm().parent(angular.element(document.body)).title('Вы действительно хотите удалить запись?').ariaLabel('Вы действительно хотите удалить запись').ok('Да').cancel('Отмена').targetEvent(ev); return $mdDialog.show(confirm).then(function() { todo.archieved = true; todo.save(); return $scope.reload(); }); }; $scope.reload = function() { return $scope.todos = todos.getList().$object; }; $scope.reload(); $scope.addTodo = function() { var todo; todo = { title: $scope.todoText, completed: false }; todos.post(todo); $scope.todoText = ''; return $scope.reload(); }; return $scope.remaining = function() { var count; count = 0; angular.forEach($scope.todos, function(todo) { return count += todo.completed ? 0 : 1; }); return count; }; } ]); }).call(this); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"file-digest:///Volumes/DATA/Users/goooseman/Programing/gems/todo_rails/app/assets/javascripts/todo_rails/controllers/todoCtrl.coffee;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%n~倗\ :(%+%˗~',: lengthi:dependencies_digest"%I㾯3V)Dk˥"ms}a:idI"E61f49b31ede4c03a9d5cd937c07b519b6c7857f37397d2858b293e0618b7c3ac;F: mtimel+=-U