minor syntax errors fixed

parent 88f6058f
...@@ -40,7 +40,7 @@ dashboardControllers.controller('InstructionsCtrl', function InstructionsCtrl($s ...@@ -40,7 +40,7 @@ dashboardControllers.controller('InstructionsCtrl', function InstructionsCtrl($s
$scope.add_method = function(){ $scope.add_method = function(){
var data = { var data = {
name: $translate.instant("new_method"); name: $translate.instant("new_method")
}; };
$scope.method.unshift(data); $scope.method.unshift(data);
...@@ -52,7 +52,7 @@ dashboardControllers.controller('InstructionsCtrl', function InstructionsCtrl($s ...@@ -52,7 +52,7 @@ dashboardControllers.controller('InstructionsCtrl', function InstructionsCtrl($s
ngToast.success($translate.instant('method_saved', {method_name: method.name})); ngToast.success($translate.instant('method_saved', {method_name: method.name}));
} }
,function(data, status, headers, config) { //error ,function(data, status, headers, config) { //error
ngToast.success($translate.instant('method_name_duplicated', {method_name: method.name})), ngToast.success($translate.instant('method_name_duplicated', {method_name: method.name}));
} }
); );
}; };
...@@ -79,7 +79,7 @@ dashboardControllers.controller('InstructionsCtrl', function InstructionsCtrl($s ...@@ -79,7 +79,7 @@ dashboardControllers.controller('InstructionsCtrl', function InstructionsCtrl($s
.error(function(data, status, headers, config) { .error(function(data, status, headers, config) {
console.log("Error from API: " + data.error); console.log("Error from API: " + data.error);
}); });
} });
}; };
// Update method template // Update method template
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment