diff options
Diffstat (limited to 'ui/effects.scale.js')
-rw-r--r-- | ui/effects.scale.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/effects.scale.js b/ui/effects.scale.js index e6309fd6c..f03de1ad1 100644 --- a/ui/effects.scale.js +++ b/ui/effects.scale.js @@ -22,7 +22,7 @@ $.effects.puff = function(o) { // Set options var options = $.extend(true, {}, o.options); var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode - var percent = parseInt(o.options.percent) || 150; // Set default puff percent + var percent = parseInt(o.options.percent,10) || 150; // Set default puff percent options.fade = true; // It's not a puff if it doesn't fade! :) var original = {height: el.height(), width: el.width()}; // Save original @@ -52,7 +52,7 @@ $.effects.scale = function(o) { // Set options var options = $.extend(true, {}, o.options); var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode - var percent = parseInt(o.options.percent) || (parseInt(o.options.percent) == 0 ? 0 : (mode == 'hide' ? 0 : 100)); // Set default scaling percent + var percent = parseInt(o.options.percent,10) || (parseInt(o.options.percent,10) == 0 ? 0 : (mode == 'hide' ? 0 : 100)); // Set default scaling percent var direction = o.options.direction || 'both'; // Set default axis var origin = o.options.origin; // The origin of the scaling if (mode != 'effect') { // Set default origin and restore for show/hide |