1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-26 17:59:14 +00:00
Radarr/NzbDrone.Web/Scripts/settingsForm.js

23 lines
643 B
JavaScript
Raw Normal View History

2011-07-01 20:33:03 +00:00
$(document).ready(function () {
var options = {
target: '#result',
2011-08-08 21:50:48 +00:00
//beforeSubmit: showRequest,
//success: showResponse,
2011-07-01 20:33:03 +00:00
type: 'post',
resetForm: false
};
$('#form').ajaxForm(options);
$('#save_button').removeAttr('disabled');
2011-07-01 20:33:03 +00:00
});
function showRequest(formData, jqForm, options) {
$("#result").empty().html('Saving...');
$("#form :input").attr("disabled", true);
$('#saveAjax').show();
}
function showResponse(responseText, statusText, xhr, $form) {
$("#result").empty().html(responseText);
$("#form :input").attr("disabled", false);
$('#saveAjax').hide();
}