dashboard-setting.js: simplified if condition
This commit is contained in:
parent
4d82106aff
commit
c9e7a3f40a
@ -9,11 +9,7 @@
|
|||||||
var settings = data.settings;
|
var settings = data.settings;
|
||||||
|
|
||||||
for (var i = 0; i < settings.length; i++) {
|
for (var i = 0; i < settings.length; i++) {
|
||||||
if (settings[i].id === id) {
|
settings[i].selected = settings[i].id === id;
|
||||||
settings[i].selected = true;
|
|
||||||
} else {
|
|
||||||
settings[i].selected = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user