$.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) {
// Set options\r
var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode\r
var color = o.options.color || "#ffff99"; // Default highlight color\r
+ var oldColor = el.css("backgroundColor");\r
\r
// Adjust\r
$.effects.save(el, props); el.show(); // Save & Show\r
el.css({backgroundImage: 'none', backgroundColor: color}); // Shift\r
\r
// Animation\r
- var animation = {backgroundColor: $.data(this, "ec.storage.backgroundColor")};\r
+ var animation = {backgroundColor: oldColor };\r
if (mode == "hide") animation['opacity'] = 0;\r
\r
// Animate\r