feesStatusCtrl.js edited online with Bitbucket

This commit is contained in:
gandhimathi 2018-08-31 10:13:32 +00:00
parent ac76305890
commit d35263fbf3

View File

@ -2328,12 +2328,13 @@ app.controller('FeesModalInstanceCtrl', ["$scope", "$modalInstance", "$timeout",
var printHtml = document.getElementById(print).outerHTML;
//var currentPage = document.body.innerHTML;
var popupWinindow = window.open('', '_blank', 'width=1200,height=700,scrollbars=no,menubar=no,toolbar=no,location=no,status=no,titlebar=no');
var elementPage = '<html><head><style type="text/css" media="print">@media print {#Header, #Footer { display:none !important; }}</style></head><body>' + printHtml + '<br><br>' + printHtml + '</body>';
document.body.innerHTML = elementPage;
window.print();
document.body.innerHTML = elementPage;
window.location.reload();
document.close();
popupWinindow.document.body.innerHTML = elementPage;
popupWinindow.print();
popupWinindow.document.body.innerHTML = elementPage;
//window.location.reload();
popupWinindow.document.close();
}
// $scope.mouseLeave = function(){