projects
/
hacks
/
simpleWebSlides.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make the print preview only fire when the presentation is finished rendering.
[hacks/simpleWebSlides.git]
/
simpleWebSlides.js
diff --git
a/simpleWebSlides.js
b/simpleWebSlides.js
index
a0e0ef8
..
1c39da4
100644
(file)
--- a/
simpleWebSlides.js
+++ b/
simpleWebSlides.js
@@
-519,7
+519,8
@@
SWS.Presentation = new function () {
progress.remove();
window.status = 'Ready';
$.fx.off = old_fx_status;
progress.remove();
window.status = 'Ready';
$.fx.off = old_fx_status;
- if (SWS.Utils.getParameterByName("dialog") != "off") window.print();
+ if (SWS.Utils.getParameterByName("dialog") != "off")
+ $("body").ready( function () { window.print(); });
}
};
loop();
}
};
loop();