AnanthaKN / jquery-in-place-editor

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

Feature Request: Add bool type (with code proposal) #141

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Not an issue, but a feature.
As it is possible to edit a with type text, text area and select, i've manage 
to add a bool type.
This display a checkbox on edition

This introduce 2 new settings: 
=>     checked_on:          "on", //Value of input field if checked (will be 
display on view mode)
=>     checked_off:         "off", //Value of input field if not checked (will 
be display on view mode)

Code change is done between line 262 and 282.
This introduce a new field_type (bool), draw the checkbox with correct param 
and use change event to change the field value.

Code is in attached file

Best regards,

Original issue reported on code.google.com by lefevre...@gmail.com on 23 Feb 2015 at 3:30

Attachments: