mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-04 08:12:39 +00:00
Print dialog now auto opens on print page
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
# changelog
|
# 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
|
### Wednesday, 20/04/2016
|
||||||
- A lot of admin improvements. Pagninated brew table
|
- A lot of admin improvements. Pagninated brew table
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ module.exports = function(app){
|
|||||||
}).join('\n');
|
}).join('\n');
|
||||||
|
|
||||||
var title = '<title>' + brew.title + '</title>';
|
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)
|
return res.send(page)
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user