1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-08 23:58:42 +01:00

Bugfix: dopo un primo errore, il form delle rate non si salvava più

This commit is contained in:
Fabio Lovato 2018-07-23 11:15:38 +02:00
parent 9f390c3702
commit 034bd44865

View File

@ -180,6 +180,10 @@ $(document).ready(function(){
} }
}); });
$(document).on('change', '[id*=percentuale]', function(){
$('button[type=submit]').prop( 'disabled', false ).removeClass('disabled');
});
$('#edit-form').submit( function(event) { $('#edit-form').submit( function(event) {
var tot = 0; var tot = 0;
@ -193,6 +197,9 @@ $(document).ready(function(){
if( tot != 100) { if( tot != 100) {
$('#wait').removeClass("hide"); $('#wait').removeClass("hide");
event.preventDefault(); event.preventDefault();
} else {
$('#wait').addClass("hide");
$(this).unbind('submit').submit();
} }
}); });
}); });