changeset 460:7d732915dce9

Return null instead of -1.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 06 Dec 2013 18:45:05 +0200
parents 36835ef53346
children ac7357d52ff6
files majax.inc.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/majax.inc.php	Fri Dec 06 18:38:57 2013 +0200
+++ b/majax.inc.php	Fri Dec 06 18:45:05 2013 +0200
@@ -232,7 +232,7 @@
       if (elem.selectedIndex != -1)
         return elem.options[elem.selectedIndex].value;
       else
-        return -1;
+        return null;
 
     default:
       jsMessageBox("Unsupported field type in "+ elname);