Chris Nolan.ca
2005-Dec-28 04:38 UTC
InPlaceEditor background image only shows first time?
Looks like this is the place to talk about script.aculo.us ? If not, could somebody let me know off list where I should direct it? I''m trying to figure out why when I use the following css for the InPlace editor saving class, it only seems to kick in the first time the edit occurs on a load. If I edit the same field again, the background image doesn''t show. .inplaceeditor-saving { background: url(/images/wait.gif) bottom right no-repeat; } Looking @ the log and the image isn''t even requested the second time. Looking @ the control.js source, could it be related to this.element.style.backgroundColor = this.originalBackground; In the showSaving function? Could this background be overwriting the background coming from the class? First thing through it''s ok, but after that could the originalBackground be messed up? I dug a bit deeper and it looks like originalBackground is coming from the ''background-color'' attribute so it should... Thanks, Chris Nolan.ca http://kekova.ca/