On Jul 13, 12:24 pm, Bryan Larsen <[email protected]> wrote:
> hjq-datepicker works inside of an hjq-input-many, just not inside the
> standard input-many.   The datepicker doesn't survive a DOM copy and
> needs to be reinitialized.
OK - thanks for the info. I used the standard input-many because the
hjq-input-many didn't work for me with Hobo 1.3. I had this in my
application.dryml:

 <def tag="input-many" for="Offer" merge>
  <hjq-input-many>
     <item:>
       <field-list fields="engineer, name, dayrate, startdate,
enddate">
          <engineer-view:>
             <name-one/>
          </engineer-view:>
       </field-list>
     </item:>
  </hjq-input-many>
</def>

However, I got an error about a class_name method missing:

Showing /home/rdale/src/ct-crm/temp5/ct-crm-staging/app/views/leads/
new_for_contact.dryml where line #6 raised:

undefined method `class_name' for #<Class:0xf867b08>

Extracted source (around line #6):

3:    <h2> New Lead for <a:contact/></h2>
4:    <error-messages/>
5:      <form owner="contact" method="post">
6:      <field-list fields="name, description, fptm, teamsize,
duration, value, currency, probability, decision_date, offers"/>
7:      <submit label="#{ht 'Lead.actions.save', :default=>['Save']}" /
>
8:   </form>
9:   </content:>

Rails.root: /home/rdale/src/ct-crm/temp5/ct-crm-staging
Application Trace | Framework Trace | Full Trace

app/views/taglibs/application.dryml:119:in `block in
input_many__for_offer'
app/views/taglibs/application.dryml:118:in `input_many__for_offer'
app/views/leads/new_for_contact.dryml:6:in `block (6 levels) in
render_page'
app/views/leads/new_for_contact.dryml:5:in `block (5 levels) in
render_page'
app/views/taglibs/auto/rapid/forms.dryml:121:in `block in
form__for_lead'
app/views/taglibs/auto/rapid/forms.dryml:120:in `form__for_lead'
app/views/leads/new_for_contact.dryml:5:in `block (4 levels) in
render_page'
app/views/leads/new_for_contact.dryml:2:in `block (3 levels) in
render_page'
app/views/taglibs/application.dryml:11:in `block in
page_with_a7588f4881f5'
app/views/taglibs/application.dryml:10:in `page_with_a7588f4881f5'
app/views/taglibs/themes/clean/clean.dryml:2:in `block in
page_with_aaa82d3a9ca5'
app/views/taglibs/themes/clean/clean.dryml:1:in
`page_with_aaa82d3a9ca5'
app/views/taglibs/auto/rapid/pages.dryml:1123:in `block in
new_page__for_lead'
app/views/taglibs/auto/rapid/pages.dryml:1122:in `new_page__for_lead'
app/views/leads/new_for_contact.dryml:1:in `block in render_page'
app/views/leads/new_for_contact.dryml:1:in `render_page'
app/views/leads/new_for_contact.dryml:1:in
`_app_views_leads_new_for_contact_dryml__68450443__618401638__248500920'


I read a bug report on this list I think, that the class_name method
is no longer in Hobo 1.3. So is it possible to get the hjq-input-many
tag to work with Hobo 1.3?

-- Richard

> Bryan
>
> On Wed, Jul 13, 2011 at 5:29 AM, rdale <[email protected]> wrote:
> > I am using Hobo 1.3 from the rails3 branch in git. I've got an input-
> > many sub table with date fields, and they don't work with the hjq-date-
> > picker tag. I came across this bug report from a year ago:
>
> >https://github.com/bryanlarsen/hobo-jquery/issues/6
>
> > Bryan Larsen says:
> > "it'd be really nice to hook input-many for delayed initialization"
>
> > Has there been any progress with a fix? Is it to do with some sort of
> > incompatibility between the date picker being written with JQuery and
> > the input-many tag using Prototype? I would love to be able to try and
> > debug this myself and help out, but I don't really know where to
> > start.
>
> > -- Richard
>
> > --
> > 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 
> > athttp://groups.google.com/group/hobousers?hl=en.

-- 
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.

Reply via email to