Commit 6b654e27beb567ca8f6707b15a956bcbd2d6c039

Authored by Amrita Vishnoi
1 parent 1e62cb2c

renamed variables

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... ... @@ -473,12 +473,13 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location",
473 473 $("#shapeStyleDiv").css("background-color", $rootScope.shapestyleFillColor);
474 474 $rootScope.shapestyleborderColor = $("#" + id).parent().css("border-top-color");
475 475 $("#shapeStyleDiv").parent().css("border-color", $rootScope.shapestyleborderColor);
476   - $rootScope.shapestyleborderWidthSeparatingPixel = $("#" + id).parent().css("border-top-width");
477   - $("#shapeStyleDiv").parent().css("border-width", $rootScope.shapestyleborderWidthSeparatingPixel);
478   - var pixelSeparation = $rootScope.shapestyleborderWidthSeparatingPixel;
479   - var intPart = pixelSeparation.split("p");
  476 + $rootScope.borderDimensions = $("#" + id).parent().css("border-top-width");
  477 + $("#shapeStyleDiv").parent().css("border-width", $rootScope.borderDimensions);
480 478  
481   - $rootScope.shapestyleborderWidth = intPart[0];
  479 + var borderDimensions = $rootScope.borderDimensions;
  480 + var borderDimensionSplitArray = borderDimensions.split("p");
  481 +
  482 + $rootScope.shapestyleborderWidth = borderDimensionSplitArray[0];
482 483 $rootScope.shapestyleborderStyles = "solid";
483 484  
484 485  
... ...