summaryrefslogtreecommitdiff
path: root/static/js/fullscreen.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/fullscreen.js')
-rw-r--r--static/js/fullscreen.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/static/js/fullscreen.js b/static/js/fullscreen.js
index 808c138..dde23f3 100644
--- a/static/js/fullscreen.js
+++ b/static/js/fullscreen.js
@@ -1,5 +1,5 @@
-function initFullscreen(){
- Room = "dumpfm";
+function initFullscreen(room){
+ Room = room || "dumpfm";
refresh();
ImageCache = [];
SeenImages = {};
@@ -56,6 +56,10 @@ function displayImage(){
$('#fav-indicator').show();
else
$('#fav-indicator').hide();
+ if (DoPrint !== undefined && DoPrint) {
+ jsPrintSetup.setSilentPrint(true);
+ jsPrintSetup.print();
+ }
}
function refresh() {