N°5976 - Correctly pass down context parameters when selecting a subclass

This commit is contained in:
Stephen Abello
2023-03-31 11:38:05 +02:00
parent 2758aaaa89
commit d415db16d3

View File

@@ -178,12 +178,11 @@ JS;
$oClassForm->SetOnSubmitJsCode(
<<<JS
let me = this;
let aParam = {};
let aParam = $(this).serialize();
aParam['class'] = $(this).find('[name="class"]').val();
let sPosting = $.post('$sCurrentUrl', aParam);
sPosting.done(function(data){
$(me).closest('[data-role="ibo-modal"]').html(data);
$(me).closest('[data-role="ibo-modal"]').dialog({ position: { my: "center", at: "center", of: window }});;
$(me).closest('[data-role="ibo-modal"]').html(data).dialog({ position: { my: "center", at: "center", of: window }});
});
return false;
JS