diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-05-31 16:49:00 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-05-31 16:49:00 +0000 |
commit | d32917596eac2bbfcb5699990231b4b72c7639ec (patch) | |
tree | 4807f98fd51541cd8baae2dc6ba92d5322bc3800 /ui | |
parent | c068874890950a0e2f1b42866eb28faa138cb5df (diff) | |
download | jquery-ui-d32917596eac2bbfcb5699990231b4b72c7639ec.tar.gz jquery-ui-d32917596eac2bbfcb5699990231b4b72c7639ec.zip |
effects: modified save mthod so it now only aves css atributes stored in the actual style attribute, fixes highlight
Diffstat (limited to 'ui')
-rw-r--r-- | ui/source/effects.core.js | 2 | ||||
-rw-r--r-- | ui/source/effects.highlight.js | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/ui/source/effects.core.js b/ui/source/effects.core.js index b44a72274..dca9f28ce 100644 --- a/ui/source/effects.core.js +++ b/ui/source/effects.core.js @@ -5,7 +5,7 @@ $.extend($.effects, { save: function(el, set) { for(var i=0;i<set.length;i++) { - if(set[i] !== null) $.data(el[0], "ec.storage."+set[i], el.css(set[i])); + if(set[i] !== null) $.data(el[0], "ec.storage."+set[i], el[0].style[set[i]]); } }, restore: function(el, set) { diff --git a/ui/source/effects.highlight.js b/ui/source/effects.highlight.js index 8eeabe39e..404b1b7fd 100644 --- a/ui/source/effects.highlight.js +++ b/ui/source/effects.highlight.js @@ -10,13 +10,14 @@ // 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: $.data(this, "ec.storage.backgroundColor")};
+ var animation = {backgroundColor: oldColor };
if (mode == "hide") animation['opacity'] = 0;
// Animate
|