aboutsummaryrefslogtreecommitdiffstats
path: root/ui/source/effects.highlight.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-06-04 02:34:33 +0000
committerRichard Worth <rdworth@gmail.com>2008-06-04 02:34:33 +0000
commit26c16a7e6fc66107819fd9900bc7e7daec561a7f (patch)
tree3856267f99dc2645ba9bfa897863239c95f8dfe9 /ui/source/effects.highlight.js
parent9caa12ad6521770dd5217dc1b1a77345a7c90418 (diff)
downloadjquery-ui-26c16a7e6fc66107819fd9900bc7e7daec561a7f.tar.gz
jquery-ui-26c16a7e6fc66107819fd9900bc7e7daec561a7f.zip
Set svn:eol-style to native
Diffstat (limited to 'ui/source/effects.highlight.js')
-rw-r--r--ui/source/effects.highlight.js70
1 files changed, 35 insertions, 35 deletions
diff --git a/ui/source/effects.highlight.js b/ui/source/effects.highlight.js
index 404b1b7fd..464780166 100644
--- a/ui/source/effects.highlight.js
+++ b/ui/source/effects.highlight.js
@@ -1,36 +1,36 @@
-;(function($) {
-
- $.effects.highlight = function(o) {
-
- return this.queue(function() {
-
- // Create element
- var el = $(this), props = ['backgroundImage','backgroundColor','opacity'];
-
- // Set options
- var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
- var color = o.options.color || "#ffff99"; // Default highlight color
- var oldColor = el.css("backgroundColor");
-
- // Adjust
- $.effects.save(el, props); el.show(); // Save & Show
- el.css({backgroundImage: 'none', backgroundColor: color}); // Shift
-
- // Animation
- var animation = {backgroundColor: oldColor };
- if (mode == "hide") animation['opacity'] = 0;
-
- // Animate
- el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
- if(mode == "hide") el.hide();
- $.effects.restore(el, props);
- if (mode == "show" && jQuery.browser.msie) this.style.removeAttribute('filter');
- if(o.callback) o.callback.apply(this, arguments);
- el.dequeue();
- }});
-
- });
-
- };
-
+;(function($) {
+
+ $.effects.highlight = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['backgroundImage','backgroundColor','opacity'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
+ var color = o.options.color || "#ffff99"; // Default highlight color
+ var oldColor = el.css("backgroundColor");
+
+ // Adjust
+ $.effects.save(el, props); el.show(); // Save & Show
+ el.css({backgroundImage: 'none', backgroundColor: color}); // Shift
+
+ // Animation
+ var animation = {backgroundColor: oldColor };
+ if (mode == "hide") animation['opacity'] = 0;
+
+ // Animate
+ el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
+ if(mode == "hide") el.hide();
+ $.effects.restore(el, props);
+ if (mode == "show" && jQuery.browser.msie) this.style.removeAttribute('filter');
+ if(o.callback) o.callback.apply(this, arguments);
+ el.dequeue();
+ }});
+
+ });
+
+ };
+
})(jQuery); \ No newline at end of file