0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

Print dialog now auto opens on print page

This commit is contained in:
Scott Tolksdorf
2016-05-14 15:29:50 -04:00
parent 451bbfc915
commit 56987e7b60
2 changed files with 6 additions and 1 deletions

View File

@@ -1,5 +1,10 @@
# changelog
### Saturday, 14/05/2016 - v2.0.0 (finally!)
I've been working on v2 for a *very* long time. I want to thank you guys for being paitent.
It started rather small, but as more and more features were added, I decided to just wait until everything was polished.
### Wednesday, 20/04/2016
- A lot of admin improvements. Pagninated brew table

View File

@@ -91,7 +91,7 @@ module.exports = function(app){
}).join('\n');
var title = '<title>' + brew.title + '</title>';
var page = '<html><head>' + title + PHBStyle + '</head><body>' + content +'</body></html>'
var page = '<html><head>' + title + PHBStyle + '</head><body onload="window.print()">' + content +'</body></html>'
return res.send(page)
});