diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index 6243f52..ef2dfa1 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -962,8 +962,8 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", }, dblclick: function (layer) { - - + + $rootScope.IsTextAlreadySave = false; var RectNameArray = (layer.name).split("_"); var TextAreaRectangleName = "TextArea_"; @@ -1184,7 +1184,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", ///----- $rootScope.saveText = function () { - + // this part will work first time when save button will be clicked if ($rootScope.IsTextAlreadySave == false) { // getting textarea style properties @@ -1265,7 +1265,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", }).drawLayers(); }, dblclick: function (layer) { - + $rootScope.isTextAreaClosedButtonActive = false; $rootScope.IsTextAlreadySave = true; @@ -1419,9 +1419,6 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", } - - - // _rectLayerOnSaveSplitInt = ''; textArrVal = ''; $("#annotationTextModal").modal("toggle"); @@ -1552,7 +1549,8 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", }, dblclick: function (layer) { - + + $rootScope.isTextAreaClosedButtonActive = false; $rootScope.IsTextAlreadySave = true; var _rectLayerOnSave = layer.name;