[Debian-iot-packaging] [openzwave-controlpanel] 55/81: Fix js to work without browser support for default function parameters.

Dara Adib daradib-guest at moszumanska.debian.org
Thu Dec 22 16:57:52 UTC 2016


This is an automated email from the git hooks/post-receive script.

daradib-guest pushed a commit to branch debian/master
in repository openzwave-controlpanel.

commit c9af33b07e8837febe78d3cbbc9ed334e54f1d0c
Author: Joe Ciccone <jciccone at gmail.com>
Date:   Tue Jul 28 21:41:01 2015 -0400

    Fix js to work without browser support for default function parameters.
---
 cp.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/cp.js b/cp.js
index ec2ab02..2107951 100644
--- a/cp.js
+++ b/cp.js
@@ -508,13 +508,17 @@ function DoConfig(id)
     return false;
   }
 }
-function DoValue(id, convert = true)
+function DoValue(id, convert)
 {
   if (curnode != null) {
     var posthttp;
     var params;
     var arg=document.getElementById(id).value;
 
+    if (typeof convert == 'undefined') {
+        convert = true;
+    }
+
     if (convert) {
 	    if (arg.toLowerCase() == 'off')
 	      arg = 'false';

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-iot/openzwave-controlpanel.git



More information about the Debian-iot-packaging mailing list