mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
fix saving the log level
This commit is contained in:
parent
5dc39b9b3a
commit
84edd6636d
6 changed files with 69 additions and 8 deletions
|
@ -76,11 +76,14 @@
|
|||
url: logUrl,
|
||||
dataType: "json",
|
||||
success: function (response) {
|
||||
$("#select > option").each(function (level) {
|
||||
if (response[0] == level.value) {
|
||||
$('#' + level.target.id).prop("selected", "selected");
|
||||
}
|
||||
});
|
||||
if (response && response.length > 0) {
|
||||
$("#selected > option").each(function (level) {
|
||||
var $opt = $(this);
|
||||
if (response[0].ordinal == level) {
|
||||
$opt.prop("selected", "selected");
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
error: function (e) {
|
||||
console.log(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue