Skip to content
Snippets Groups Projects
Commit 8852b8cd authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #44519 : submit form when opacDialogClose is call to prevent losing new data

parent 9357f849
Branches
Tags 7.5.37
3 merge requests!1797Master,!1727Dev#44519 recette fiche bibliotheque mauvais affichage des articles,!1722Dev#44519 recette fiche bibliotheque mauvais affichage des articles
......@@ -126,6 +126,12 @@
window.opacDialogClose = function() {
var dialog_form = $('#opac-dialog form');
if (dialog_form.length)
$.ajax({url: dialog_form.attr('action'),
type: 'post',
data: dialog_form.serialize()});
$('#opac-dialog').dialog('close');
$('#opac-dialog').remove();
}
......@@ -163,7 +169,7 @@
modal:show_modal,
dialogClass: dialogClass,
close:onClose,
open: function() {setTimeout(onOpen, 1);},
open: function() {setTimeout(onOpen, 100);},
position: position
}).closest('.ui-dialog').find('.ui-dialog-title').html(titre);
return modal;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment