Re: submit form with context from js

2013-12-18 Thread Taha Siddiqi
If I am using jQuery, I won't be too much worried about it. BTW nice catch !! On Dec 18, 2013, at 9:34 PM, George Christman wrote: > Taha, firing $("#form").trigger('submit'); seems to remember my > original submit action. Should I be wary of this with other browsers? > > example > > define(["

Re: submit form with context from js

2013-12-18 Thread George Christman
Taha, firing $("#form").trigger('submit'); seems to remember my original submit action. Should I be wary of this with other browsers? example define(["jquery", "bootstrap/modal"], function($) { int = function(spec) { var $field = $("#" + spec.id); $field.bind("click", functio

Re: submit form with context from js

2013-12-18 Thread George Christman
No, there is unfortunately 4 submit buttons. :( On Wed, Dec 18, 2013 at 10:30 AM, Taha Siddiqi wrote: > If there is only one submit button, you can also use form's own context > parameter. that way you just have to call form.submit() from the javascript. > > > On Dec 18, 2013, at 8:46 PM, Georg

Re: submit form with context from js

2013-12-18 Thread Taha Siddiqi
If there is only one submit button, you can also use form's own context parameter. that way you just have to call form.submit() from the javascript. On Dec 18, 2013, at 8:46 PM, George Christman wrote: > I guess that would work, I wish there was a way to reconstruct the > original submit button

Re: submit form with context from js

2013-12-18 Thread George Christman
I guess that would work, I wish there was a way to reconstruct the original submit button in js. On Wed, Dec 18, 2013 at 9:56 AM, Lance Java wrote: > You could use 2 buttons (one hidden). > Hide the original form submit button and show a button that fires the > modal. The modal somehow fires a cl

Re: submit form with context from js

2013-12-18 Thread Lance Java
You could use 2 buttons (one hidden). Hide the original form submit button and show a button that fires the modal. The modal somehow fires a click event on the hidden submit button.

submit form with context from js

2013-12-18 Thread George Christman
Hello, I'm using 5.4 and a custom mixin on my submit actions which is used to trigger the bootstrap modal popup. My popup does nothing other than provide warnings to the user prior to form submission. I'm trying to figure out how to submit the form from my modal popup with the original submit butto