mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Settings forms are fixed.
This commit is contained in:
parent
1cfc2f3fe4
commit
82e2cb2d1e
16 changed files with 321 additions and 116 deletions
25
NzbDrone.Web/Scripts/NzbDrone/AutoBind.js
Normal file
25
NzbDrone.Web/Scripts/NzbDrone/AutoBind.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
$(document).ready(function () {
|
||||
|
||||
//All forms are ajax forms
|
||||
$("form").livequery(function () {
|
||||
|
||||
var options = {
|
||||
type: 'post',
|
||||
resetForm: false
|
||||
};
|
||||
|
||||
$(this).ajaxForm(options);
|
||||
|
||||
});
|
||||
|
||||
$('Form button').livequery(function () {
|
||||
$(this).removeAttr('disabled');
|
||||
});
|
||||
|
||||
|
||||
//All buttons are jQueryUI buttons
|
||||
$('button, input[type="button"], input[type="submit"], input[type="reset"]').livequery(function () {
|
||||
$(this).button();
|
||||
});
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue