Commit e1f69b637cb5fee76566c93d43695f1814196e47

Authored by Nikita Kulshreshtha
2 parents 8ad43a57 8043d093

Merge branch 'IEAnnotationIssue' of http://52.6.196.163/ADAM/AIAHTML5 into IEAnnotationIssueMerge

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... ... @@ -410,7 +410,11 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
410 410  
411 411  
412 412  
  413 + if ($.browser.msie) {
  414 + $("#resetBtn").css("display", "inline-block");
  415 + // $rootScope.refreshCanvas();
413 416  
  417 + }
414 418 $(function () {
415 419 var colpick = $('.demo').each(function () {
416 420  
... ... @@ -3625,5 +3629,12 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
3625 3629 if ((e.keyCode === 116) || (e.keyCode == 82 && e.ctrlKey))
3626 3630 $location.path('/'); //Redirecting to landing page
3627 3631 };
  3632 +
  3633 + $rootScope.resetAnnotationCanvas = function (e) {
  3634 +
  3635 + $('#canvas').removeLayers();
  3636 +
  3637 + };
  3638 +
3628 3639 }]
3629 3640 );
3630 3641 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.Web/index.html
... ... @@ -155,6 +155,11 @@
155 155 position: relative;
156 156 top: 1px;
157 157 }
  158 +
  159 + #refreshBtn {
  160 + color: #ffffff;
  161 + }
  162 +
158 163 </style>
159 164  
160 165  
... ... @@ -631,6 +636,7 @@
631 636 <button type="button" class="btn btn-black-annotation btn-xs btn-annotation btn-annotation-rectangle" ng-mouseover="addToolTip(95, 100, 120, 'Draw Rectangle')" ng-mouseleave="removeToolTipOnMouseOut()" ng-click="DrawRectangle($event)"><img src="content/images/draw-rec.png" alt="" title=""></button>
632 637 <button type="button" class="btn btn-black-annotation btn-xs btn-annotation btn-annotation-circle" ng-mouseover="addToolTip(95, 120, 120, 'Draw Circle')" ng-mouseleave="removeToolTipOnMouseOut()" ng-click="DrawCircle($event)"><img src="content/images/draw-cir.png" alt="" title=""></button>
633 638 <!--<button type="button" class="btn btn-black-annotation btn-xs btn-annotation" ng-mouseover="addToolTip(95, 140, 120, 'Draw Polygon')" ng-mouseleave="removeToolTipOnMouseOut()" ng-click="DrawPolygon($event)"><img src="content/images/draw-poly.png" alt="" title=""></button>-->
  639 + <button type="button" class="btn btn-black-annotation" id="resetBtn" style="padding:1px 7px;display:none;" ng-click="resetAnnotationCanvas()" ng-mouseover="addToolTip(95, 140, 120, 'Refresh')" ng-mouseleave="removeToolTipOnMouseOut()"><i class="fa fa-refresh"></i></button>
634 640 </div>
635 641 </div>
636 642 </div>
... ... @@ -1910,6 +1916,7 @@
1910 1916 }
1911 1917 }
1912 1918 </script>
  1919 + <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-browser/0.1.0/jquery.browser.min.js"></script>
1913 1920 </body>
1914 1921  
1915 1922 </html>
1916 1923 \ No newline at end of file
... ...