diff options
Diffstat (limited to 'ui/jquery.effects.highlight.js')
-rw-r--r-- | ui/jquery.effects.highlight.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/jquery.effects.highlight.js b/ui/jquery.effects.highlight.js index 9a3edc5bc..6ca0d53c2 100644 --- a/ui/jquery.effects.highlight.js +++ b/ui/jquery.effects.highlight.js @@ -16,7 +16,7 @@ $.effects.highlight = function(o) { return this.queue(function() { var elem = $(this), props = ['backgroundImage', 'backgroundColor', 'opacity'], - mode = $.effects.setMode(elem, o.options.mode || 'show'), + mode = $.effects.setMode(elem, o.mode || 'show'), animation = { backgroundColor: elem.css('backgroundColor') }; @@ -30,17 +30,17 @@ $.effects.highlight = function(o) { .show() .css({ backgroundImage: 'none', - backgroundColor: o.options.color || '#ffff99' + backgroundColor: o.color || '#ffff99' }) .animate(animation, { queue: false, duration: o.duration, - easing: o.options.easing, + easing: o.easing, complete: function() { (mode == 'hide' && elem.hide()); $.effects.restore(elem, props); (mode == 'show' && !$.support.opacity && this.style.removeAttribute('filter')); - (o.callback && o.callback.apply(this, arguments)); + (o.complete && o.complete.apply(this, arguments)); elem.dequeue(); } }); |