Commit fd7b7162f473a2b3d7547196b9dd950664c48816
1 parent
9dd5db54
IE Canvas Issue
Showing
2 changed files
with
18 additions
and
0 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... | ... | @@ -337,7 +337,11 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic |
337 | 337 | $(document).ready(function () { |
338 | 338 | // getUserDetails(); |
339 | 339 | |
340 | + if ($.browser.msie) { | |
341 | + $("#refreshBtn").css("display", "inline-block"); | |
342 | + $rootScope.refreshCanvas(); | |
340 | 343 | |
344 | + } | |
341 | 345 | $(function () { |
342 | 346 | var colpick = $('.demo').each(function () { |
343 | 347 | |
... | ... | @@ -3545,5 +3549,12 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic |
3545 | 3549 | if ((e.keyCode === 116) || (e.keyCode == 82 && e.ctrlKey)) |
3546 | 3550 | $location.path('/'); |
3547 | 3551 | }; |
3552 | + | |
3553 | + $rootScope.refreshCanvas = function (e) { | |
3554 | + | |
3555 | + $('#canvas').removeLayers(); | |
3556 | + | |
3557 | + }; | |
3558 | + | |
3548 | 3559 | }] |
3549 | 3560 | ); |
3550 | 3561 | \ 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 | |
... | ... | @@ -639,6 +644,7 @@ |
639 | 644 | <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> |
640 | 645 | <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> |
641 | 646 | <!--<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>--> |
647 | + <button type="button" class="btn btn-black-annotation" id="refreshBtn" style="padding:1px 7px;display:none;" ng-click="refreshCanvas()" ng-mouseover="addToolTip(95, 140, 120, 'Refresh')" ng-mouseleave="removeToolTipOnMouseOut()"><i class="fa fa-refresh"></i></button> | |
642 | 648 | </div> |
643 | 649 | </div> |
644 | 650 | </div> |
... | ... | @@ -1918,6 +1924,7 @@ |
1918 | 1924 | } |
1919 | 1925 | } |
1920 | 1926 | </script> |
1927 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-browser/0.1.0/jquery.browser.min.js"></script> | |
1921 | 1928 | </body> |
1922 | 1929 | |
1923 | 1930 | </html> |
1924 | 1931 | \ No newline at end of file | ... | ... |