Thanks for this feedback, Bryan.
One way or another I still think it is a bug (maybe a hobo issue,
rather than the datepicker) - it's clearly not logical that the
datepicker works for existing records but not for new ones?
I've tried using <hjq-input-many> as you suggest, but that's breaking
something else for me - in the same subform I've got
<engineer-view:>
<name-one/>
</engineer-view>
to force an autocompleter on my engineer field. with <hjq-input-many>
it reverts to a dropdown list.
br
paul
On 15 June, 15:07, Bryan Larsen <[email protected]> wrote:
> OK, that explains why I was confused. input-many doesn't do any AJAX,
> it's magic is accomplished via pure Javascript. I think you'll have to
> use hjq-input-many instead of the standard input-many.
>
> http://cookbook.hobocentral.net/api_tag_defs/hjq-input-many
>
> Bryan
>
> On 10-06-15 03:07 AM, storitel wrote:
>
> > Hi Bryan
> > I've not written any<do-part...> - i don't understand how that works
> > yet :-)
>
> > I've got various code has_many and has_many :through relationships (eg
> > company has many contacts). When I use the edit page of a parent
> > record for any of these, I've got default ajax + - buttons to add and
> > subtract child records. So for example I can add contacts when editing
> > a company.
>
> > After installing the datepicker I've overridden the Date input in
> > application.dryml...
>
> > <def tag="input" for="Date"><hjq-datepicker dateFormat="dd-mm-yy"
> > merge/></def>
>
> > as I said above, thecalendarappears when i click in date fields for
> > existing records (eg existing contacts as sub forms in my company edit
> > form), but it doesn't appear when i use the ajax + button to create a
> > new record and then click in one of its date fields.
>
> > I wondered if it's something i've done, but I get the same effect on
> > all my child models. For testing I've even tried using the datepicker
> > to override Integer ad String to make sure it's not something to do
> > with date fields specifically. Same result - thecalendarpops up for
> > integer fields, or string fields... but only on existing records.
--
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.