Thanks for tracking it down.   It's really strange that it worked for me.

fix committed: 
https://github.com/bryanlarsen/hobo-jquery/commit/c06ca48b7352912acbab1e8f040170a6524084b7

Bryan

On Thu, Jan 12, 2012 at 8:27 AM, Bob Sleys <[email protected]> wrote:
> Ok I stepped though the javascript when clicking the press me button and
> here is what I found.  Note I added the highlighted line (return false;)
>
>     $.fn.hjq_dialog_open_button = function(annotations) {
>         this.on('click', function() {
>             $(annotations.selector).hjq_dialog_box('toggle');
>             return false;
>         });
>     };
>
> This is all called from this section of code in jqury.js starting at line
> 3319
>
>                     ret = ( specialHandle || handleObj.handler ).apply(
> matched.elem, args );
>
>                     if ( ret !== undefined ) {
>                         event.result = ret;
>                         if ( ret === false ) {
>                             event.preventDefault();
>                             event.stopPropagation();
>                         }
>                     }
>
> Since hjq_dialog_open_button has no return the preventDefault is never run.
>  If I add the return false; to it like above the dialog box opens and the
> form isn't submitted.
>
> Bob
>
> --
> 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/-/H785laVDV3YJ.
>
> 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.

Reply via email to