#4279 closed bug (worksforme)
effects ignores duration in tr and td elements
Reported by: | lordofloco | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.8 |
Component: | ui.effects.core | Version: | 1.6rc6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When using .effect("highlight") jQuery UI ignores the duration parameter if the $ object refers to a tr or td element. When using .animate({backgroundColor}), there seems to be no effect at all. Have tried with variations of all of the examples below. Effect/highlight blips from the highlight color to the normal background color in about half a second. Animate or chained animate calls do not seem to work.
(#x is a tr element)
$("#x").effect("highlight", {color:"#96eecd"}, 2000); $("#x").animate({backgroundColor: "#96eecd"}, 2000); $("td", "#x").effect("highlight", {color:"#96eecd"}, 2000); $("td", "#x").animate({backgroundColor: "#96eecd"}, 2000);
Change History (4)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
I think I've narrowed down the problem with .effect to the DOM insert - adding a small delay of 100ms between the last inserted row and the start of the highlight animation seems to have fixed it. Animate still does not honor the duration setting however.
comment:3 Changed 15 years ago by
Milestone: | TBD → 1.8 |
---|
comment:4 Changed 14 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Works for me, tested against 1.6rc6 and trunk.
I forgot to mention yesterday that tr#x and its child td elements in the previous example have been dynamically added to the DOM in a .ajax callback function: