From ff7116ac5778c3d575cb6bd4b24a983ae1e328a2 Mon Sep 17 00:00:00 2001 From: Shannon Date: Tue, 29 Oct 2013 18:21:52 +1100 Subject: [PATCH] couple missing semi colons --- .../propertyeditors/tags/tags.controller.js | 66 +++++++++---------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/tags/tags.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/tags/tags.controller.js index 3d8fd710f3..ee62d20026 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/tags/tags.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/tags/tags.controller.js @@ -1,41 +1,41 @@ angular.module("umbraco") .controller("Umbraco.PropertyEditors.TagsController", function ($rootScope, $scope, $log, assetsService) { - - //load current value - $scope.currentTags = []; - if($scope.model.value){ - $scope.currentTags = $scope.model.value.split(","); - } - $scope.addTag = function(e){ - var code = e.keyCode || e.which; - if(code == 13) { //Enter keycode - if($scope.currentTags.indexOf($scope.tagToAdd) < 0){ - $scope.currentTags.push($scope.tagToAdd); - } - $scope.tagToAdd = ""; - } - } + //load current value + $scope.currentTags = []; + if ($scope.model.value) { + $scope.currentTags = $scope.model.value.split(","); + } - $scope.removeTag = function(tag){ - var i = $scope.currentTags.indexOf(tag); - if(i >= 0){ - $scope.currentTags.splice(i,1); - } - } - - //sync model on submit (needed since we convert an array to string) - $scope.$on("formSubmitting", function (ev, args) { - $scope.model.value = $scope.currentTags.join(); - }); + $scope.addTag = function(e) { + var code = e.keyCode || e.which; + if (code == 13) { //Enter keycode + if ($scope.currentTags.indexOf($scope.tagToAdd) < 0) { + $scope.currentTags.push($scope.tagToAdd); + } + $scope.tagToAdd = ""; + } + }; - //vice versa - $scope.model.onValueChanged = function (newVal, oldVal) { - //update the display val again if it has changed from the server - $scope.model.val = newVal; - $scope.currentTags = $scope.model.value.split(","); - }; + $scope.removeTag = function (tag) { + var i = $scope.currentTags.indexOf(tag); + if (i >= 0) { + $scope.currentTags.splice(i, 1); + } + }; - } + //sync model on submit (needed since we convert an array to string) + $scope.$on("formSubmitting", function (ev, args) { + $scope.model.value = $scope.currentTags.join(); + }); + + //vice versa + $scope.model.onValueChanged = function (newVal, oldVal) { + //update the display val again if it has changed from the server + $scope.model.val = newVal; + $scope.currentTags = $scope.model.value.split(","); + }; + + } ); \ No newline at end of file