From d32917596eac2bbfcb5699990231b4b72c7639ec Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Sat, 31 May 2008 16:49:00 +0000 Subject: effects: modified save mthod so it now only aves css atributes stored in the actual style attribute, fixes highlight --- ui/source/effects.highlight.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/source/effects.highlight.js') 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 -- cgit v1.2.3