Added job intake process for BOD-114
This commit is contained in:
@@ -39,3 +39,19 @@ export default async function RenderTemplate(templateObject, bodyshop) {
|
||||
resolve(data);
|
||||
});
|
||||
}
|
||||
|
||||
export const displayTemplateInWindow = (html) => {
|
||||
try {
|
||||
var newWin = window.open("", "_blank", "toolbar=0,location=0,menubar=0");
|
||||
newWin.document.write(html);
|
||||
|
||||
setTimeout(function () {
|
||||
newWin.document.close();
|
||||
newWin.focus();
|
||||
newWin.print();
|
||||
newWin.close();
|
||||
}, 500);
|
||||
} catch (error) {
|
||||
console.log("Unable to write to new window.", error);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user