mirror of
https://github.com/pretix/pretix.git
synced 2025-12-09 00:42:28 +00:00
Simplify value comparison (state multiselect is not supported anyway)
This commit is contained in:
@@ -28,9 +28,7 @@ $(function () {
|
||||
if (data.data.length > 0) {
|
||||
$.each(data.data, function (k, s) {
|
||||
var o = $("<option>").attr("value", s.code).text(s.name);
|
||||
if (s.code == selected_value || (selected_value && selected_value.indexOf && selected_value.indexOf(s.code) > -1)) {
|
||||
o.prop("selected", true);
|
||||
}
|
||||
if (selected_value == s.code) o.prop("selected", true);
|
||||
dependents.state.append(o);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user