AnanthaKN / jquery-in-place-editor

Automatically exported from code.google.com/p/jquery-in-place-editor
Other
0 stars 0 forks source link

use toggleClass instead of background color #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
For the sake of separating style and behaviour, it would be better to use a
toggleClass() functionality instead of a background-color value. In other
words, the bg_out and bg_over parameters should receive a class name
instead of a color code. 

Original issue reported on code.google.com by aplennev...@gmail.com on 15 Oct 2009 at 7:40

GoogleCodeExporter commented 8 years ago
just as a workaround for this.

You could add this param:

success: (function() {
                            $('.edit').each(function
(idx,el){
                            el.style.background='';

this stops that background from being set and allows the original background 
settings set from a class in the style sheet to come through..

Original comment by darthv...@googlemail.com on 12 Nov 2009 at 12:41

GoogleCodeExporter commented 8 years ago
I have changes in my copy of the editor at 
<http://haecker.me/trac/browser/open-source/jquery-edit-in-
place/trunk> that allow you to define a class to be used for the styling of 
backgrounds.

Original comment by martin.h...@googlemail.com on 14 Feb 2010 at 2:55

GoogleCodeExporter commented 8 years ago
fix commited

Original comment by mhaec...@gmail.com on 23 Mar 2010 at 10:19