In case one option is "0"
Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
// FIXME eval here is bad and dangerous, how do we workaround that?
$(eval(filter_type)).each(function(){
let o = $('<option value="%s">%s</option>'.format(this._id, this._str));
- if ( existing_search == this._id ) {
+ if ( existing_search === this._id ) {
o.prop("selected", "selected");
}
o.appendTo(select);