create_button doesn't support standard ajax attributes
Reported by Betelgeuse | June 29th, 2010 @ 03:40 PM | in Hobo 1.3 (Rails 3)
The documentation states:
http://cookbook.hobocentral.net/api_tag_defs/create-button
All of the standard ajax attributes are supported (see the main taglib documention for Rapid Forms).
Example standard attributes:
http://cookbook.hobocentral.net/api_taglibs/rapid_forms
success: script to run on successful completion of the request
In reality if you pass success to create-button nothing
happens.
Looking at the code it doesn't look to me like it would be trying
to handle the standard attributes.
Comments and changes to this ticket
-
Matt Jones September 14th, 2011 @ 10:50 PM
- State changed from new to open
- Milestone set to Hobo 1.3 (Rails 3)
- Milestone order changed from 197845 to 0
-
Matt Jones September 21st, 2011 @ 04:10 AM
(from [a0c3cf0319aa95863520446465ac29f17365d716]) [#748] fix create-button attribute handling https://github.com/tablatom/hobo/commit/a0c3cf0319aa95863520446465a...
-
Matt Jones September 21st, 2011 @ 04:13 AM
- State changed from open to resolved
This is fixed now - the
create-button
code was silently dropping the options on the floor.This is still less-than-useful, however, pending some clarity on #957. For instance, I had to add this to the model's controller to get this button to work meaningfully on an index page:
def create hobo_create do |wants| wants.js do self.this = model.all hobo_ajax_response end end end
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
People watching this ticket
Referenced by
- 748 create_button doesn't support standard ajax attributes (from [a0c3cf0319aa95863520446465ac29f17365d716]) [#748] ...