mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
javascript linting
This commit is contained in:
parent
6347345c23
commit
11dd187df2
@ -1,6 +1,7 @@
|
||||
{% load inventree_extras %}
|
||||
|
||||
/* exported
|
||||
editSettings,
|
||||
user_settings,
|
||||
global_settings,
|
||||
*/
|
||||
@ -80,7 +81,7 @@ function editSetting(pk, options={}) {
|
||||
|
||||
var setting = response.key;
|
||||
|
||||
if (response.type == "boolean") {
|
||||
if (response.type == 'boolean') {
|
||||
var enabled = response.value.toString().toLowerCase() == 'true';
|
||||
$(`#setting-value-${setting}`).prop('checked', enabled);
|
||||
} else {
|
||||
@ -93,5 +94,4 @@ function editSetting(pk, options={}) {
|
||||
showApiError(xhr, url);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user