Is there a way to disable Ajax.InPlaceEditor''s yellow rollover highlight?
Andrew Kaspick
2006-Mar-03 20:23 UTC
Re: Ajax.InPlaceEditor - disabling the yellow highlight?
I just set my hightlight colour like so.... highlightcolor:''transparent'' Best I could figure out. On 3/3/06, John Beppu <john.beppu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is there a way to disable Ajax.InPlaceEditor''s yellow rollover highlight? > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
On 3/3/06, Andrew Kaspick <akaspick-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I just set my hightlight colour like so.... highlightcolor:''transparent''I tried that and it seemed to work, but Firefox''s Javascript console was spewing a lot of warnings about #NaNNanNan not being a valid color every time I rolled over an in-place editor. I actually started digging through the source, and this is what I came up with: var ipe = new Ajax.InPlaceEditor(el, ''ajax_process_category_edit.html'', { callback: function(form) { return Form.serialize(form) + ''&blog_category_id='' + x[2]; } } ); Event.stopObserving(ipe.element, ''mouseover'', ipe.mouseoverListener); Event.stopObserving(ipe.element, ''mouseout'', ipe.mouseoutListener);
Nicolas Terray
2006-Mar-06 09:53 UTC
Re: Ajax.InPlaceEditor - disabling the yellow highlight?
On 3/3/06, John Beppu <john.beppu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I tried that and it seemed to work, but Firefox''s Javascript console > was spewing a lot of warnings about #NaNNanNan not being a valid color > every time I rolled over an in-place editor. >I think that the highlightcolor must be a real, full hexa, color.