Commit 3de866ea60db1be4e8d17650c080df2b20ef918c
1 parent
2ca490b1
this is for bug 20277 Export Image ADAM logo is missing
Showing
1 changed file
with
2 additions
and
0 deletions
400-SOURCECODE/AIAHTML5.Web/index.html
@@ -1893,6 +1893,7 @@ | @@ -1893,6 +1893,7 @@ | ||
1893 | <script> | 1893 | <script> |
1894 | $(function () { | 1894 | $(function () { |
1895 | $("#btnSaveEI").click(function () { | 1895 | $("#btnSaveEI").click(function () { |
1896 | + $("#canvasDiv").append("<img id='exportlogo' class='img-responsive' src='content/images/adam-logo-small.png'/>"); | ||
1896 | html2canvas($("#canvasDiv"), { | 1897 | html2canvas($("#canvasDiv"), { |
1897 | onrendered: function (canvas) { | 1898 | onrendered: function (canvas) { |
1898 | theCanvas = canvas; | 1899 | theCanvas = canvas; |
@@ -1902,6 +1903,7 @@ | @@ -1902,6 +1903,7 @@ | ||
1902 | var dataURL = canvas.toDataURL("image/jpeg"); | 1903 | var dataURL = canvas.toDataURL("image/jpeg"); |
1903 | var blob = dataURItoBlob(dataURL); | 1904 | var blob = dataURItoBlob(dataURL); |
1904 | saveAs(blob, fileName); | 1905 | saveAs(blob, fileName); |
1906 | + $("#exportlogo").remove(); | ||
1905 | $("#filename").val(""); | 1907 | $("#filename").val(""); |
1906 | } | 1908 | } |
1907 | }); | 1909 | }); |