should have posted this to begin with by my copy of the tag is now this.
<def tag="select-one-or-new-dialog">
<% dialog_id = "dialog-#{typed_id.gsub(':', '-')}" %>
<% part_id = "select-one-#{typed_id.gsub(':', '-')}" %>
<input part="select-one-or-new-dialog-select" id="#{part_id}"/>
<dialog-open-button dialog="##{dialog_id}" param>
New <%= this_field.humanize %>
</dialog-open-button>
<dialog-box param buttons='&[["cancel", "hjq.dialog.close"], ["ok",
"hjq.dialog.submitFormletAndClose"]]' title="New #{this_field.humanize}"
id="&dialog_id" >
<formlet with="&this_type.new" update="&part_id"
success="jQuery('##{part_id} select').val(jQuery('##{part_id}
option:last').val())">
<field-list />
</formlet>
</dialog-box>
</def>
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/hobousers/-/9yaENzyFa1oJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.