Unfortunately, hyphens are more appropriate for XML, which is where the reset-form option comes from. I committed a fix.
I don't generally use reset-form: most of my ajax includes the form in the part. So thanks for catching it. I added a test so that it will be caught in the future. cheers, Bryan On Tue, Sep 18, 2012 at 3:32 PM, Arnaud Doyen <[email protected]> wrote: > Hi Bryan, > > I checked out with hobo 2.0.0.pre1 and indeed, reset-form is not working. > While debugging the hjq.js (with chrome), (line where reset_form is used), > it appears that o.attrs.reset_form is not defined but o.attr.reset-form well > (but the hyphen is not a good idea in javascript). > > Have you encountered this kind of issue aswel ? > > Arnaud. > > > 2012/6/8 Arnaud Doyen <[email protected]> >> >> Thanks, I forgot about this section in the changes-1.4 ! >> >> 2012/6/8 Bryan Larsen <[email protected]> >>> >>> spinner-next-to definitely worked in the Hobo 1.4 alpha, although it >>> may have broken since. It has its own section in CHANGES-1.4.txt, >>> have you read that? >>> >>> refocus-form is handled in this line in hjq.js: >>> >>> if(o.attrs.refocus_form) >>> that.find(":input[type!=hidden]:first").focus(); >>> >>> if you want to take a look at it before I do. I'll add both options >>> to the TODO for 1.4. >>> >>> Bryan >>> >>> >>> On Fri, Jun 8, 2012 at 1:49 AM, Arnaud D. <[email protected]> wrote: >>> > Hi, >>> > >>> > It seems reset-form and spinner-next-to are not working anymore in Hobo >>> > 1.4. >>> > Does someone have encountered this issue in ajax forms ? >>> > >>> > I'll try to debug these problems but it's not the most urgent one on my >>> > pipe. >>> > >>> > Rgds, >>> > Arnaud. >>> > >>> > -- >>> > 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. >>> >>> -- >>> 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. >>> >> > > -- > 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. -- 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.
