I have an <update-button> tag in a card definition, but when telling it to
update self, it just doesn't happen. no errors in firebug or on the server,
it actually performs the update on the model, and displays the spinner, and
then the spinner goes away, but the card doesn't get re-rendered. Halp?
Here's the card definition:
<def tag="card" for="Milestone">
<if test="&this.late">
<card class="milestone late" id="milestone-#{typed_id}" param="default"
merge>
<header:>
<h4 param="heading"><a><name/></a></h4>
</header:>
<body:>
<section>
Due: <this.target-date/><br/>
Complete: <this.completion-date/><br/>
Belongs to: <a if="&this.user" with="&this.user"><name/></a> <a
with="&this.group"><name/></a>
</section>
<section if="&this.completion_date == nil">
<update-button fields="&{:completion_date => Date.today()}"
update="self"/>
</section>
</body>
</card>
</if>
<else>
<card class="milestone" param="default" id="milestone-#{typed_id}" merge>
<header:>
<h4 param="heading"><a><name/></a></h4>
</header:>
<body:>
Due: <this.target-date/><br/>
Complete: <this.completion-date/><br/>
Belongs to: <a if="&this.user" with="&this.user"><name/></a> <a
with="&this.group"><name/></a>
<if test="&this.completion_date == nil">
<update-button fields="&{:completion_date => Date.today()}"
update="self"/>
</if>
</body>
</card>
</else>
</def>
ps, if I try to set 'part="milestone"' on the card tag as show in the recipe
(http://cookbook.hobocentral.net/recipes/8-use-parts-on-repeated-elements),
I get a "duplicate part tag" error.
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
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.