From f3462531dc1da5eedb18a49545ee89ac654fed54 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Fri, 4 Mar 2016 14:57:39 -0500 Subject: [PATCH] use elem.value instead of DOM attribute getter for audio api change --- pd/nw/dialog_prefs.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pd/nw/dialog_prefs.html b/pd/nw/dialog_prefs.html index 324114bcd..1789ace9c 100644 --- a/pd/nw/dialog_prefs.html +++ b/pd/nw/dialog_prefs.html @@ -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 { -- GitLab