From 85d3d34b569d879ada04e5e1ba7d0448cfc207fe Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Sun, 8 Jun 2008 15:07:25 +0000 Subject: [PATCH] pulsate: correctly pulsates n-times now on show/hide --- ui/effects.pulsate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/effects.pulsate.js b/ui/effects.pulsate.js index 690e79805..e22c0f821 100644 --- a/ui/effects.pulsate.js +++ b/ui/effects.pulsate.js @@ -25,12 +25,12 @@ $.effects.pulsate = function(o) { var times = o.options.times || 5; // Default # of times // Adjust - if (mode != 'hide') times--; + if (mode == 'hide') times--; if (el.is(':hidden')) { // Show fadeIn el.css('opacity', 0); el.show(); // Show el.animate({opacity: 1}, o.duration / 2, o.options.easing); - times--; + times = times-2; } // Animate -- 2.39.5