Merged in bugfix/FBI-1845 (pull request #5709)
FBI-1845 Approved-by: Daniel Canedo <daniel@processmaker.com> Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com> Approved-by: Alex Enrique Santos Quispe <alex.santos@processmaker.com>
This commit is contained in:
@@ -13,20 +13,8 @@ function dynaFormChanged(frm) {
|
||||
* @param formStep
|
||||
*/
|
||||
function submitNextStep(formStep) {
|
||||
var btnSubmit,
|
||||
index = 0;
|
||||
btnSubmit = formStep.querySelectorAll('[type="submit"]');
|
||||
if (btnSubmit && btnSubmit.length){
|
||||
btnSubmit[index].click();
|
||||
}else{
|
||||
btnSubmit = $('<button>');
|
||||
btnSubmit.attr("type","submit");
|
||||
btnSubmit.attr("name","form[__NEXT_STEP__]");
|
||||
btnSubmit.hide();
|
||||
$(formStep).append(btnSubmit);
|
||||
btnSubmit.click();
|
||||
btnSubmit.remove();
|
||||
}
|
||||
$("#" + formStep.id).submitForm();
|
||||
return this;
|
||||
}
|
||||
$(window).load(function () {
|
||||
var delIndexDefault = "0",
|
||||
|
||||
Reference in New Issue
Block a user