Skip to content

Commit

Permalink
fixing the JS bug created by the device-specific commits
Browse files Browse the repository at this point in the history
  • Loading branch information
twoln committed Jan 5, 2024
1 parent 0349ba0 commit ac19d0f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/admin/js/option_expand.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ function getXML(attribute_class, fedid, device) {
var client = new XMLHttpRequest();
client.attribute_class = attribute_class;
client.onreadystatechange = addOption;
client.open("GET", "inc/option_xhr.inc.php?class=" + attribute_class + "&fedid="+ fedid + "&etype=XML&device="+device);
if (device === undefined) {
client.open("GET", "inc/option_xhr.inc.php?class=" + attribute_class + "&fedid="+ fedid + "&etype=XML");
} else {
client.open("GET", "inc/option_xhr.inc.php?class=" + attribute_class + "&fedid="+ fedid + "&etype=XML&device="+device);
}
client.send();
}

Expand Down

0 comments on commit ac19d0f

Please sign in to comment.