Skip to content
Code-Schnipsel Gruppen Projekte
Commit 16b19fdf erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: mobile select -> isNAN implemented

Übergeordneter f2b4bc06
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -338,8 +338,19 @@ define('qui/controls/buttons/Select', [
var i, len, childvalue;
var children = this.$Menu.getChildren();
function isNumeric(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}
for (i = 0, len = children.length; i < len; i++) {
if (children[i].getAttribute('value') === value) {
childvalue = children[i].getAttribute('value');
if (childvalue === value) {
this.$set(children[i]);
return this;
}
if (isNumeric(value) && childvalue === parseInt(value)) {
this.$set(children[i]);
return this;
}
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren