aboutsummaryrefslogtreecommitdiffstats
path: root/source/effects.highlight.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-06-07 17:37:43 +0000
committerRichard Worth <rdworth@gmail.com>2008-06-07 17:37:43 +0000
commita635d0a7c9441d2ed5256e0c841be99afbc7cb94 (patch)
tree442f36440ad69185f597aa1804b7106ed688cab9 /source/effects.highlight.js
parenta25ba5018cb9645b7b21bc889eb0f36468c6c0fc (diff)
downloadjquery-ui-a635d0a7c9441d2ed5256e0c841be99afbc7cb94.tar.gz
jquery-ui-a635d0a7c9441d2ed5256e0c841be99afbc7cb94.zip
renamed source -> ui
Diffstat (limited to 'source/effects.highlight.js')
-rw-r--r--source/effects.highlight.js49
1 files changed, 0 insertions, 49 deletions
diff --git a/source/effects.highlight.js b/source/effects.highlight.js
deleted file mode 100644
index 9d6e3a1b1..000000000
--- a/source/effects.highlight.js
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * jQuery UI Effects Highlight
- *
- * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Effects/Highlight
- *
- * Depends:
- * effects.core.js
- *
- */
-;(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);