Commit f3462531 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

use elem.value instead of DOM attribute getter for audio api change

parent 94531f30
......@@ -401,8 +401,9 @@ function cancel() {
}
function change_api(elem) {
pdgui.post("elem is " + elem);
var id = elem.getAttribute("id"),
value = elem.getAttribute("value");
value = elem.value; // need js object property, DOM Attribute won't work
if (id === "audio_api") {
pdgui.pdsend("pd audio-setapi", value);
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment