X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=simpleWebSlides.js;h=1c39da439a89cf0cf7957305e69f99d9b7c1f676;hb=ae166ab0660578706ca96ded3b12730d1cc90c7a;hp=80eecb0529884bcea0a7fcb2d827a198facfb787;hpb=6f82af14634b5c8b7d3af8fa27300c4ae0d27d50;p=hacks%2FsimpleWebSlides.git diff --git a/simpleWebSlides.js b/simpleWebSlides.js index 80eecb0..1c39da4 100644 --- a/simpleWebSlides.js +++ b/simpleWebSlides.js @@ -163,7 +163,7 @@ SWS.Config = new SWS.ConfigBuilder (); SWS.Effects = new function () { var self = this; - + self.objectDeactivateFadeOut = function (o) { if (o.is("embed")) return; o.animate({'opacity': '0'}, 200, @@ -395,7 +395,7 @@ SWS.Presentation = new function () { }; all.find("*").addBack().promise().done(function() { //wait for all elements to finish transitionning, in case a callback animate something - //an denable _input_events again. + //and enable _input_events again. _disable_input_events = false; }); }); @@ -487,6 +487,11 @@ SWS.Presentation = new function () { self.printMode = function () { _print_mode = true; + + var old_fx_status = $.fx.off; + //disable animation while printing. + + $.fx.off = true; var progress = $("
Rendering presentation: %
"); $("body").append(progress); @@ -513,7 +518,9 @@ SWS.Presentation = new function () { $("#sws-percent-progress").text(100); progress.remove(); window.status = 'Ready'; - window.print(); + $.fx.off = old_fx_status; + if (SWS.Utils.getParameterByName("dialog") != "off") + $("body").ready( function () { window.print(); }); } }; loop();