Commit 6763a8eb8aae9df5c893a71e4af32f13a5eae5bc

Authored by Mitali Srivastava
1 parent 25b9cb00

#7400: In settings, skin-tone images are disppearing everytime on selction of different skin tones.

400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js
... ... @@ -340,8 +340,8 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, pages, B
340 340 parentSlug: 'clinical-animations',
341 341 content: '<div class="row"><div class="col-sm-12" align="center"><video style="height:80%;" controls>' +
342 342 '<source loop autoplay controls="true" src="' + $scope.clickedCAVideo + '" type="video/mp4" />Your browser does not support HTML5 video.</video><div class="col-sm-12 well">' +
343   - '<div id="sid" align="left" style="height:40px;overflow-y:scroll !important"><p>' + $scope.clickedCASummary + '</p></div><button class="btn btn-primary pull-right">Text Off</button>' +
344   - '<script>$(document).ready(function(){$("button").click(function(){$("#sid").toggle();if($.trim($(this).text()) === "Text Off"){$(this).text("Text On");}else{$(this).text("Text Off");}});});</script></div></div>',
  343 + '<div id="sid" align="left" style="height:40px;overflow-y:scroll !important"><p>' + $scope.clickedCASummary + '</p></div><button id="btnTxtOnOff" class="btn btn-primary pull-right">Text Off</button>' +
  344 + '<script>$(document).ready(function(){$("#btnTxtOnOff").click(function(){$("#sid").toggle();if($.trim($(this).text()) === "Text Off"){$(this).text("Text On");}else{$(this).text("Text Off");}});});</script></div></div>',
345 345  
346 346 //ajax: {
347 347 // url: 'app/views/ca/ca-view-detail.html'
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js
... ... @@ -404,8 +404,8 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
404 404 parentSlug: 'clinical-illustrations',
405 405 content: '<div class="row"><div class="col-sm-12 img-thumbnail" align="center">' +
406 406 '<img src="' + $scope.clickedCIImage + '" alt="" title="" class="img-responsive "><div class="col-sm-12 well">' +
407   - '<div align="left" id="sid"><p>' + $scope.clickedCISummary + '</p></div><button class="btn btn-primary pull-right">Text Off</button>' +
408   - '<script>$(document).ready(function(){$("button").click(function(){$("#sid").toggle();if($.trim($(this).text()) === "Text Off"){$(this).text("Text On");}else{$(this).text("Text Off");}});});</script></div>' +
  407 + '<div align="left" id="sid"><p>' + $scope.clickedCISummary + '</p></div><button id="btnTxtOnOff" class="btn btn-primary pull-right">Text Off</button>' +
  408 + '<script>$(document).ready(function(){$("#btnTxtOnOff").click(function(){$("#sid").toggle();if($.trim($(this).text()) === "Text Off"){$(this).text("Text On");}else{$(this).text("Text Off");}});});</script></div>' +
409 409 '</div></div>',
410 410 //ajax: {
411 411 // url: 'app/views/ci/ci-view-detail.html'
... ...