cab / lib /web /htdocs /modules /datamgmt /restore_backup.js
docs4you's picture
Upload 487 files
27867f1 verified
raw
history blame contribute delete
827 Bytes
$(document).ready(function(){
$('form').submit(function() { // catch the form's submit
$(this).find('input[type="checkbox"]').each(function() {
if ($(this).is(":checked") == true) {
var n = '#'+$(this).attr("id")+'hidden';
$(n).prop("disabled", true);
} else {
var n = '#'+$(this).attr("id")+'hidden';
$(n).prop("disabled", false);
}
});
$.ajax({
data: $(this).serialize(),
type: $(this).attr('method'), // GET or POST
url: $(this).attr('action'),
success: function(response) { // on success
$('#status').html(response);
}
});
return false; // cancel original submit event
});
});