mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Merge branch 'markus101'
Conflicts: NzbDrone.Web/NzbDrone.Web.csproj
This commit is contained in:
commit
c7a219ddc6
14 changed files with 441 additions and 551 deletions
22
NzbDrone.Web/Scripts/settingsForm.js
Normal file
22
NzbDrone.Web/Scripts/settingsForm.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
$(document).ready(function () {
|
||||
var options = {
|
||||
target: '#result',
|
||||
beforeSubmit: showRequest,
|
||||
success: showResponse,
|
||||
type: 'post',
|
||||
resetForm: false
|
||||
};
|
||||
$('#form').ajaxForm(options);
|
||||
});
|
||||
|
||||
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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue