Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
BomAle Posted July 7, 2018 Posted July 7, 2018 When try to submit a dialog into plugins page the dialog hide with setLoading the form, and the values are not fetched because form is hidden. // Otherwise, we've passed verification and we can submit the form as normal form.attr( 'data-bypassValidation', true ).submit(); if I replace code as follow, the values are passed into request // Otherwise, we've passed verification and we can submit the form as normal setLoading(false); form.attr( 'data-bypassValidation', true ).submit(); @bfarber @Daniel F
BomAle Posted July 7, 2018 Author Posted July 7, 2018 it happen only for matrix table elements, I would suggest to edit ips.ui.matrix as follow //change: _submitForm = function (e) { // Remove names from the inputs in the blank row elem.find('[data-matrixrowid]:hidden') .find('input, select, textarea') .attr( 'name', '' ) .prop( 'disabled', true ); //to _submitForm = function (e) { // Remove names from the inputs in the blank row var contentDialog = elem.closest('.ipsDialog').length && elem.closest('.ipsDialog').find( '.ipsDialog_content' ), hiddenDialog = contentDialog && contentDialog.is(':hidden'); hiddenDialog && contentDialog.show(); elem.find('[data-matrixrowid]:hidden') .find('input, select, textarea') .attr( 'name', '' ) .prop( 'disabled', true ); hiddenDialog && contentDialog.hide(); OR check if ips.ui.dialog.setLoading is called true while call _submitForm into ips.ui.matrix
Recommended Posts
Archived
This topic is now archived and is closed to further replies.