From 3b1a2dbd0726589130394522e2d703a97d59f7a7 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Mon, 3 Aug 2015 01:40:24 +0300 Subject: [PATCH] Fixes --- templates/js/controllers/newTasksController.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/js/controllers/newTasksController.js b/templates/js/controllers/newTasksController.js index 8a029df..d7ae2cc 100644 --- a/templates/js/controllers/newTasksController.js +++ b/templates/js/controllers/newTasksController.js @@ -1,4 +1,4 @@ -angular.module('SeHub').controller('newTasksController', ['$scope', 'apiService', '$cookies', '$location' , +angular.module('SeHub').controller('newTasksController', ['$scope', 'apiService', '$cookies', '$location', function($scope, apiService, $cookies, $location) { $scope.newComp = {}; @@ -44,10 +44,10 @@ angular.module('SeHub').controller('newTasksController', ['$scope', 'apiService' day: payload.dueDate.getDate() } - - apiService.createTask(token, payload).success(function(data){ + + apiService.createTask(token, payload).success(function(data) { $location.path('/tasks'); - }).error(function(err){ + }).error(function(err) { console.error(err); }) } else { @@ -95,10 +95,10 @@ angular.module('SeHub').controller('newTasksController', ['$scope', 'apiService' var type = $scope.newComp.type; comp.type = type; comp.order = compOrder; - compOrder ++; + compOrder++; comp.isMandatory = $scope.newComp.isMandatory; comp.label = ""; - var i = 0 + var i = 0; if (!(type === 'textbox' || type === 'textarea' || type === 'checkbox')) while ($scope.newComp.label[i]) { comp.label += $scope.newComp.label[i] + "|";