mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
Finished #707
This commit is contained in:
parent
30a59c8a8b
commit
21f3131cb4
14 changed files with 58 additions and 167 deletions
25
PlexRequests.UI/Content/wizard.js
vendored
25
PlexRequests.UI/Content/wizard.js
vendored
|
@ -106,31 +106,6 @@
|
|||
});
|
||||
|
||||
|
||||
$('#contentBody').on('click', '#SearchForMovies', function () {
|
||||
var checked = this.checked;
|
||||
changeDisabledStatus($('#RequireMovieApproval'), checked, $('#RequireMovieApprovalLabel'));
|
||||
});
|
||||
|
||||
$('#contentBody').on('click', '#SearchForTvShows', function () {
|
||||
var checked = this.checked;
|
||||
changeDisabledStatus($('#RequireTvShowApproval'), checked, $('#RequireTvShowApprovalLabel'));
|
||||
});
|
||||
|
||||
$('#contentBody').on('click', '#SearchForMusic', function () {
|
||||
var checked = this.checked;
|
||||
changeDisabledStatus($('#RequireMusicApproval'), checked, $('#RequireMusicApprovalLabel'));
|
||||
});
|
||||
|
||||
function changeDisabledStatus($element, checked, $label) {
|
||||
if (checked) {
|
||||
$element.removeAttr("disabled");
|
||||
$label.css("color","");
|
||||
} else {
|
||||
$element.attr("disabled","disabled");
|
||||
$label.css("color", "grey");
|
||||
}
|
||||
}
|
||||
|
||||
function loadArea(templateId) {
|
||||
var $body = $('#contentBody');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue