sanzbox@yahoo.com
2005-Aug-09 01:50 UTC
[Rails-spinoffs] In-place textarea patch/diff for controls.js
Hi Thomas et al, Here''s a diff to add TEXTAREA in-place editing support to controls.js. This is my first patch so let me know the official process to add a patch into the stream and please let me know if there are some coding idioms I should be following. Features: Allows user to specify the rows/cols (width/height) of the in-place input field. If the row size is greater than ''1'' we render a multiline textarea instead of a one line ''text'' input field. Also adds ''size'' as a synonym for ''cols'' so you can use either to specify the width of single row text input elements too. This also adds a ''<br>'' tag to the input form so the ''OK/cancel'' text appears underneath the textarea instead of beside it. Cheers, -San ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs -------------- next part -------------- A non-text attachment was scrubbed... Name: controls.js.diff Type: application/octet-stream Size: 1917 bytes Desc: 3494185201-controls.js.diff Url : http://wrath.rubyonrails.org/pipermail/rails-spinoffs/attachments/20050809/ad970d21/controls.js.obj