Commit 7e6d4d67e32b9d0ed8cf63e6b1fe6854d0ba26f8

Authored by Amrita Vishnoi
1 parent 2084019f

removed one extra function

400-SOURCECODE/AIAHTML5.API/AIAHTML5.API.csproj
... ... @@ -96,7 +96,9 @@
96 96 <ItemGroup>
97 97 <Content Include="Global.asax" />
98 98 <Content Include="index.html" />
99   - <Content Include="Web.config" />
  99 + <Content Include="Web.config">
  100 + <SubType>Designer</SubType>
  101 + </Content>
100 102 </ItemGroup>
101 103 <ItemGroup>
102 104 <Compile Include="App_Start\WebApiConfig.cs" />
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... ... @@ -2745,35 +2745,6 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
2745 2745 });
2746 2746 };
2747 2747  
2748   - function PrintDivContentByID(id) {
2749   - var contents = document.getElementById(id).innerHTML;
2750   - var frame1 = $('<iframe />');
2751   - frame1[0].name = "frame1";
2752   - frame1.css({ "position": "absolute", "top": "-1000000px" });
2753   - $("body").append(frame1);
2754   -
2755   - var frameDoc = frame1[0].contentWindow ? frame1[0].contentWindow : frame1[0].contentDocument.document ? frame1[0].contentDocument.document : frame1[0].contentDocument;
2756   -
2757   - frameDoc.document.open();
2758   - //Create a new HTML document.
2759   - frameDoc.document.write('<html><head><title></title>');//Print Preview
2760   - frameDoc.document.write('</head><body>');
2761   - //Append the external CSS file.
2762   - frameDoc.document.write('<link href="content/css/print-Portrait.css" rel="stylesheet" type="text/css" />');
2763   - frameDoc.document.write('<link href="content/css/print-main.css" rel="stylesheet" type="text/css" />');
2764   - //Append the DIV contents.
2765   - frameDoc.document.write(contents);
2766   - frameDoc.document.write('</body></html>');
2767   - frameDoc.document.close();
2768   -
2769   - setTimeout(function () {
2770   - window.frames["frame1"].focus();
2771   - window.frames["frame1"].print();
2772   - frame1.remove();
2773   - }, 250);
2774   -
2775   - console.log('close')
2776   - }
2777   -
  2748 +
2778 2749 }]
2779 2750 );
2780 2751 \ No newline at end of file
... ...