Commit ddf46880def8d691f2dd90caa4921a670effe009

Authored by Nikita Kulshreshtha
2 parents 0767c7a4 738debc2

Merge branch 'AnnotationDefaultColorIssue' into Develop

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -6824,7 +6824,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -6824,7 +6824,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
6824 6824
6825 $("#text_area").val(''); 6825 $("#text_area").val('');
6826 $("#text_area").css({ " font-family": "'Verdana, sans-serif'", "font-size": "14px", "font-weight": "normal", "font-style": "normal", "color": "#000", "text-align": "left", "text-decoration": "none" }); 6826 $("#text_area").css({ " font-family": "'Verdana, sans-serif'", "font-size": "14px", "font-weight": "normal", "font-style": "normal", "color": "#000", "text-align": "left", "text-decoration": "none" });
6827 - 6827 + $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").css({ "background-color": "#000000" });
  6828 + // $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").addClass("ActiveDefaultColorAnnotation");
6828 6829
6829 $("#text-italic").removeClass("ActiveFormattingButtonClass"); 6830 $("#text-italic").removeClass("ActiveFormattingButtonClass");
6830 6831
@@ -6873,7 +6874,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -6873,7 +6874,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
6873 6874
6874 $("#annotationTextModal").modal("toggle"); 6875 $("#annotationTextModal").modal("toggle");
6875 $('.btnCursor').trigger('click'); 6876 $('.btnCursor').trigger('click');
6876 - 6877 + $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").css({ "background-color": "#000000" });
  6878 + // $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").addClass("ActiveDefaultColorAnnotation");
6877 $("#text_area").val(''); 6879 $("#text_area").val('');
6878 6880
6879 $("#text_area").css({ " font-family": 'Verdana, sans-serif', "font-size": "14px", "font-weight": "normal", "font-style": "normal", "color": "#000", "text-align": "left", "text-decoration": "none" }); 6881 $("#text_area").css({ " font-family": 'Verdana, sans-serif', "font-size": "14px", "font-weight": "normal", "font-style": "normal", "color": "#000", "text-align": "left", "text-decoration": "none" });
@@ -7035,8 +7037,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -7035,8 +7037,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
7035 $("#text_area").css("color", $rootScope.TextPropertyArray[_rectLayerOnSaveSplitInt].FontColor); 7037 $("#text_area").css("color", $rootScope.TextPropertyArray[_rectLayerOnSaveSplitInt].FontColor);
7036 $("#text_area").css("font-family", $rootScope.TextPropertyArray[_rectLayerOnSaveSplitInt].FontFamily); 7038 $("#text_area").css("font-family", $rootScope.TextPropertyArray[_rectLayerOnSaveSplitInt].FontFamily);
7037 $("#text_area").css("text-decoration", $rootScope.TextPropertyArray[_rectLayerOnSaveSplitInt].TextDecoration); 7039 $("#text_area").css("text-decoration", $rootScope.TextPropertyArray[_rectLayerOnSaveSplitInt].TextDecoration);
7038 -  
7039 - 7040 + $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").css({ "background-color": $rootScope.TextPropertyArray[_rectLayerOnSaveSplitInt].FontColor });
  7041 + // $(".ActiveDefaultColorAnnotation").css({ "background-color": $rootScope.TextPropertyArray[_rectLayerOnSaveSplitInt].FontColor + "!important" });
  7042 + // $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").addClass("ActiveDefaultColorAnnotation");
7040 7043
7041 7044
7042 //adding text text decoration active class in text edit pop-up 7045 //adding text text decoration active class in text edit pop-up
@@ -7156,7 +7159,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -7156,7 +7159,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
7156 $("#text_area").val(''); 7159 $("#text_area").val('');
7157 $("#text_area").css({ " font-family": "'Verdana, sans-serif'", "font-size": "14px", "font-weight": "normal", "font-style": "normal", "color": "#000", "text-align": "left", "text-decoration": "none" }); 7160 $("#text_area").css({ " font-family": "'Verdana, sans-serif'", "font-size": "14px", "font-weight": "normal", "font-style": "normal", "color": "#000", "text-align": "left", "text-decoration": "none" });
7158 7161
7159 - 7162 + $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").css({ "background-color": "#000000" });
7160 $("#text-italic").removeClass("ActiveFormattingButtonClass"); 7163 $("#text-italic").removeClass("ActiveFormattingButtonClass");
7161 7164
7162 $("#text-bold").removeClass("ActiveFormattingButtonClass"); 7165 $("#text-bold").removeClass("ActiveFormattingButtonClass");
@@ -7279,8 +7282,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -7279,8 +7282,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
7279 $("#text_area").css("color", _modifiedFontColor); 7282 $("#text_area").css("color", _modifiedFontColor);
7280 $("#text_area").css("font-family", _modifiedFontFamily); 7283 $("#text_area").css("font-family", _modifiedFontFamily);
7281 $("#text_area").css("text-decoration", _modifiedFontDecoration); 7284 $("#text_area").css("text-decoration", _modifiedFontDecoration);
7282 -  
7283 - 7285 + $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").css({ "background-color": _modifiedFontColor });
  7286 + // $(".ActiveDefaultColorAnnotation").css({ "background-color": _modifiedFontColor + "!important" });
  7287 + // $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").addClass("ActiveDefaultColorAnnotation");
7284 7288
7285 //adding text text decoration active class in text edit pop-up 7289 //adding text text decoration active class in text edit pop-up
7286 if (_modifiedFontDecoration == "underline") { 7290 if (_modifiedFontDecoration == "underline") {
400-SOURCECODE/AIAHTML5.Web/index.html
@@ -42,7 +42,9 @@ @@ -42,7 +42,9 @@
42 <!--Annotation Toolbar: Jcanvas--> 42 <!--Annotation Toolbar: Jcanvas-->
43 <style> 43 <style>
44 44
45 - 45 + /*.ActiveDefaultColorAnnotation {
  46 + background-color: #000000!important;
  47 + }*/
46 .ActiveFormattingButtonClass { 48 .ActiveFormattingButtonClass {
47 background-color: #1B92D0 !important; 49 background-color: #1B92D0 !important;
48 } 50 }
@@ -1199,12 +1201,14 @@ @@ -1199,12 +1201,14 @@
1199 <script type="text/javascript"> 1201 <script type="text/javascript">
1200 $(function () { 1202 $(function () {
1201 var colpick = $('.demo').each(function () { 1203 var colpick = $('.demo').each(function () {
  1204 +
1202 $(this).minicolors({ 1205 $(this).minicolors({
1203 control: $(this).attr('data-control') || 'hue', 1206 control: $(this).attr('data-control') || 'hue',
1204 inline: $(this).attr('data-inline') === 'true', 1207 inline: $(this).attr('data-inline') === 'true',
1205 letterCase: 'lowercase', 1208 letterCase: 'lowercase',
1206 opacity: false, 1209 opacity: false,
1207 change: function (hex, opacity) { 1210 change: function (hex, opacity) {
  1211 + $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").removeClass("ActiveDefaultColorAnnotation");
1208 if (!hex) return; 1212 if (!hex) return;
1209 if (opacity) hex += ', ' + opacity; 1213 if (opacity) hex += ', ' + opacity;
1210 try { 1214 try {
@@ -1338,6 +1342,8 @@ @@ -1338,6 +1342,8 @@
1338 1342
1339 <script> 1343 <script>
1340 $(document).ready(function () { 1344 $(document).ready(function () {
  1345 + // $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").addClass("ActiveDefaultColorAnnotation");
  1346 + $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").css({ "background-color": "#000000" });
1341 var borderWidth = 1; 1347 var borderWidth = 1;
1342 var borderColor = "#000"; 1348 var borderColor = "#000";
1343 $("#borderWidthCanvasElement").change(function () { 1349 $("#borderWidthCanvasElement").change(function () {
@@ -1353,9 +1359,10 @@ @@ -1353,9 +1359,10 @@
1353 } 1359 }
1354 }); 1360 });
1355 1361
  1362 +
1356 1363
1357 $('.borderColorCanvasPreview').each(function () { 1364 $('.borderColorCanvasPreview').each(function () {
1358 - 1365 + // $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").addClass("ActiveDefaultColorAnnotation");
1359 $(this).minicolors({ 1366 $(this).minicolors({
1360 control: $(this).attr('data-control') || 'hue', 1367 control: $(this).attr('data-control') || 'hue',
1361 defaultValue: $(this).attr('data-defaultValue') || '', 1368 defaultValue: $(this).attr('data-defaultValue') || '',
@@ -1371,8 +1378,8 @@ @@ -1371,8 +1378,8 @@
1371 if (opacity) value += ', ' + opacity; 1378 if (opacity) value += ', ' + opacity;
1372 if (typeof console === 'object') { 1379 if (typeof console === 'object') {
1373 console.log(value); 1380 console.log(value);
1374 -  
1375 - borderColor = value; 1381 +
  1382 + borderColor = value;
1376 $("#imgOpacity").parent().css("border", borderWidth + "px" + " " + "solid" + borderColor); 1383 $("#imgOpacity").parent().css("border", borderWidth + "px" + " " + "solid" + borderColor);
1377 1384
1378 1385
@@ -1381,12 +1388,12 @@ @@ -1381,12 +1388,12 @@
1381 theme: 'bootstrap' 1388 theme: 'bootstrap'
1382 }); 1389 });
1383 1390
  1391 +
1384 }); 1392 });
1385 1393
1386 1394
1387 -  
1388 $('.outerBackgroundColor').each(function () { 1395 $('.outerBackgroundColor').each(function () {
1389 - 1396 +
1390 $(this).minicolors({ 1397 $(this).minicolors({
1391 control: $(this).attr('data-control') || 'hue', 1398 control: $(this).attr('data-control') || 'hue',
1392 defaultValue: $(this).attr('data-defaultValue') || '', 1399 defaultValue: $(this).attr('data-defaultValue') || '',