Commit Graph

184 Commits

Author SHA1 Message Date
Ari Epstein
00643beceb on stop set first item position at 1, not 0 2012-12-08 18:17:26 -05:00
John Bintz
6d85276a4e add cocoon wrapper 2012-11-27 10:17:53 -05:00
John Bintz
83beb92d4a refactor and make i18n nicer 2012-11-01 13:19:36 -04:00
John Bintz
09fe15c446 fix broken test 2012-10-26 17:59:48 -04:00
John Bintz
a1715f049b more work to make nested sortable forms work, can now sort forms within forms 2012-10-26 17:59:07 -04:00
John Bintz
511184a267 fix merge problem 2012-10-25 15:27:25 -04:00
John Bintz
b8f373fd5e add the most basic sanity tests for formtastic input 2012-10-25 15:17:47 -04:00
John Bintz
042fcc9976 fix dumb bug 2012-10-25 15:02:00 -04:00
John Bintz
53074502b1 merge in master 2012-10-25 14:59:39 -04:00
John Bintz
6503f8eafa merge 2012-10-25 14:51:07 -04:00
John Bintz
bfe72bd29f add support for sorting nested forms 2012-10-25 14:49:55 -04:00
Nathan Van der Auwera
22cfa784d4 Clarified the :wrap_object documentation.
It was not made clear enough that the callable needs
to return the object. Fixes #103.
2012-10-25 10:11:33 +03:00
John Bintz
215b31cb59 Merge branch 'formtastic_input' of github.com:johnbintz/cocoon into formtastic_input 2012-10-21 13:46:00 -04:00
John Bintz
663a9f344c some fixes 2012-10-21 13:12:29 -04:00
nathanvda
2287dddcf9 Updated README to document the :wrap_object option and the changed callback signature (allowing to add animations, effects, markup to the inserted items). 2012-10-19 20:00:50 +02:00
John Bintz
f584e181d2 ensure important 2012-10-18 14:02:10 -04:00
nathanvda
bbba9dc4c0 Add the (to be) inserted or (to be) removed html to the event.
The event gets an extra parameter: for `before-insert` and `after-insert` the inserted piece of html. For `before-remove` and `after-remove` the removed piece of html. This way one can add effects/animations if needed.

The remove code has been refactored (less code duplication), and checks for a possible timeout, which can be set in the `before-remove` callback.
2012-10-18 07:28:29 +02:00
John Bintz
3f89fff364 add stylesheet for active admin integration 2012-10-17 11:21:19 -04:00
John Bintz
78b54a1002 hack in formtastic input 2012-10-17 10:09:53 -04:00
nathanvda
8118a45953 Make sure we handle self-nested forms correctly. Fixes #96 and #74. 2012-10-13 00:11:16 +02:00
Nathan Van der Auwera
58f538f495 Merge pull request #98 from finist/patch-1
before and after remove triggers not work when fields existing
2012-10-12 07:19:15 -07:00
Nikolay Seskin
646c036258 Update app/assets/javascripts/cocoon.js 2012-10-12 17:54:55 +04:00
Nathan Van der Auwera
4f3fce0e9c Regenerate gemspec for version 1.1.0 2012-10-09 01:13:46 +02:00
Nathan Van der Auwera
7e830eea2e Update read me to reflect the new event names. 2012-09-25 00:47:41 +02:00
Nathan Van der Auwera
5d2446f7e5 Next release will be 1.1.0 because the event names have changed. 2012-09-25 00:03:20 +02:00
Nathan Van der Auwera
a5cc3212a7 Rename the events: use clear collision-free names. 2012-09-25 00:03:20 +02:00
Nathan Van der Auwera
64fd7e718d Merge pull request #90 from dnagir/create-object-option
Allow to use with Arrays and non-associations
2012-09-24 14:28:04 -07:00
Dmytrii Nagirniak
4ad85f2782 Merge branch 'fix-broken-js' into create-object-option 2012-09-24 19:01:46 +10:00
Dmytrii Nagirniak
d4b997a082 Fix broken js at c69c157aff 2012-09-24 19:00:19 +10:00
Dmytrii Nagirniak
bee1a8ba0b Allow to build plural transient associations 2012-09-24 18:20:18 +10:00
Dmytrii Nagirniak
80f949d15a Allow to create association from build_xyz method on an object 2012-09-24 18:15:25 +10:00
Dmytrii Nagirniak
3f59065366 Refactor object creating and add pending spec 2012-09-24 18:08:07 +10:00
Dmytrii Nagirniak
a581d0a3ec Raise more describprive error when can't reflect on association 2012-09-24 17:47:47 +10:00
Nathan Van der Auwera
7baae8f8c3 Updated README. 2012-09-21 00:45:42 +02:00
Nathan Van der Auwera
8e3bfa1a29 Bump version to 1.0.23 2012-09-21 00:45:26 +02:00
Nathan Van der Auwera
c69c157aff Renamed the triggered events to be more clear and symmetric, and added a before-insert. As discussed in #89. 2012-09-21 00:38:26 +02:00
Nathan Van der Auwera
359e1ac741 Merge pull request #88 from SebastianEdwards/master
Allow created objects to be decorated via a callable option.
2012-09-20 02:21:48 -07:00
Sebastian Edwards
c33df6fec5 Allow created objects to be decorated via a callable option. 2012-09-19 22:37:35 +12:00
Nathan Van der Auwera
c2a0be513d Merge pull request #83 from porecreat/rename-template
Rename link 'template' data attribute
2012-09-13 05:17:55 -07:00
Nathan Van der Auwera
9c1451ec7a Merge pull request #76 from joelcogen/master
Updated README with standard Rails forms example
2012-09-13 05:16:32 -07:00
Nathan Van der Auwera
3cc8a56693 Merge pull request #82 from porecreat/master
Relative node selection
2012-09-13 05:15:24 -07:00
Gauthier Delacroix
5fb2708496 Fix data attributes order in specs 2012-08-29 10:42:15 +02:00
Gauthier Delacroix
9e3f0436d1 Rename JS 'template' data 2012-08-29 10:33:40 +02:00
Gauthier Delacroix
3833d9b175 Add relative node selection 2012-08-28 19:08:57 +02:00
Nathan Van der Auwera
6ebb375a67 Merge pull request #78 from ShaneCurcuru/patch-1
Suggest attribution of Apache Cocoon trademark
2012-08-01 07:30:46 -07:00
ShaneCurcuru
3b305ed389 Suggest attribution of Apache Cocoon trademark 2012-08-01 10:59:12 -03:00
Nathan Van der Auwera
ffaaaeefda Merge pull request #77 from DomKM/master
This fork fixes a minor typo in README.markdown.
2012-07-31 14:20:46 -07:00
Dom Kiva-Meyer
fd230a396d fixes minor typo in README 2012-07-31 11:36:30 -07:00
Joel Cogen
0cd06df780 Updated README with standard Rails forms example 2012-07-31 14:36:58 +03:00
Nathan Van der Auwera
c0fd78fea2 Merge pull request #75 from bduc/master
Bugfix : Call insertion-callback on the correct container
2012-07-30 08:39:19 -07:00