diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index 4484d74..0401f4d 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -410,7 +410,11 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic + if ($.browser.msie) { + $("#resetBtn").css("display", "inline-block"); + // $rootScope.refreshCanvas(); + } $(function () { var colpick = $('.demo').each(function () { @@ -3625,5 +3629,12 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic if ((e.keyCode === 116) || (e.keyCode == 82 && e.ctrlKey)) $location.path('/'); //Redirecting to landing page }; + + $rootScope.resetDrawing = function (e) { + + $('#canvas').removeLayers(); + + }; + }] ); \ No newline at end of file diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/Link/iframeresizer.html b/400-SOURCECODE/AIAHTML5.Web/app/views/Link/iframeresizer.html index b07dbd2..6f654af 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/views/Link/iframeresizer.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/views/Link/iframeresizer.html @@ -1,4 +1,3 @@ - @@ -52,6 +51,23 @@ else return results[1]; } + + function resizeIframe(dHeight) { + var iframe = document.getElementById('externalLink'); + if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { + var ieversion = new Number(RegExp.$1) + if (ieversion == 8 || ieversion == 7) { + iframe.height = parseInt(dHeight) + 250; + } + else { + iframe.height = dHeight; + } + } + else { + iframe.height = dHeight; + } + } + - \ No newline at end of file + diff --git a/400-SOURCECODE/AIAHTML5.Web/index.html b/400-SOURCECODE/AIAHTML5.Web/index.html index 63da0f6..55fc6be 100644 --- a/400-SOURCECODE/AIAHTML5.Web/index.html +++ b/400-SOURCECODE/AIAHTML5.Web/index.html @@ -155,6 +155,11 @@ position: relative; top: 1px; } + + #refreshBtn { + color: #ffffff; + } + @@ -631,6 +636,7 @@ + @@ -654,8 +660,7 @@  
- -
+