From 6b654e27beb567ca8f6707b15a956bcbd2d6c039 Mon Sep 17 00:00:00 2001 From: amrita.vishnoi Date: Fri, 6 Jan 2017 16:34:44 +0530 Subject: [PATCH] renamed variables --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index 2c98b65..0a0a338 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -473,12 +473,13 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", $("#shapeStyleDiv").css("background-color", $rootScope.shapestyleFillColor); $rootScope.shapestyleborderColor = $("#" + id).parent().css("border-top-color"); $("#shapeStyleDiv").parent().css("border-color", $rootScope.shapestyleborderColor); - $rootScope.shapestyleborderWidthSeparatingPixel = $("#" + id).parent().css("border-top-width"); - $("#shapeStyleDiv").parent().css("border-width", $rootScope.shapestyleborderWidthSeparatingPixel); - var pixelSeparation = $rootScope.shapestyleborderWidthSeparatingPixel; - var intPart = pixelSeparation.split("p"); + $rootScope.borderDimensions = $("#" + id).parent().css("border-top-width"); + $("#shapeStyleDiv").parent().css("border-width", $rootScope.borderDimensions); - $rootScope.shapestyleborderWidth = intPart[0]; + var borderDimensions = $rootScope.borderDimensions; + var borderDimensionSplitArray = borderDimensions.split("p"); + + $rootScope.shapestyleborderWidth = borderDimensionSplitArray[0]; $rootScope.shapestyleborderStyles = "solid"; -- libgit2 0.21.4