mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fixed PR #6002
This commit is contained in:
parent
2c38036123
commit
664cc24481
|
@ -295,7 +295,7 @@ $(document).ready(function () {
|
||||||
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
|
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
|
||||||
},
|
},
|
||||||
}).done(function(response) {;
|
}).done(function(response) {;
|
||||||
var currentlySelected = element.select2('data').map(x => +x.id).filter(x => {return x !== 0});
|
var currentlySelected = element.select2('data').map(function (x){ return +x.id}).filter(function (x) {return x !== 0});
|
||||||
|
|
||||||
// makes sure we're not selecting the same thing twice for multiples
|
// makes sure we're not selecting the same thing twice for multiples
|
||||||
var filteredResponse = response.items.filter(function(item) {
|
var filteredResponse = response.items.filter(function(item) {
|
||||||
|
|
Loading…
Reference in a new issue