Commit 435a8131 authored by Thimo Kraemer's avatar Thimo Kraemer

Bug fix reading form values

parent ea1fbbf3
/* /*
* KSS-RPC v0.23-beta * KSS-RPC v0.24-beta
* *
* Copyright (c) 2017, joonis new media * Copyright (c) 2017, joonis new media
* Author: Thimo Kraemer <thimo.kraemer@joonis.de> * Author: Thimo Kraemer <thimo.kraemer@joonis.de>
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
******************************************************************************************/ ******************************************************************************************/
var kss = { var kss = {
version: '0.23-beta', version: '0.24-beta',
_initialized: false, _initialized: false,
_ruleSheets: {}, _ruleSheets: {},
_nodeRegister: {}, _nodeRegister: {},
...@@ -2297,15 +2297,11 @@ kss.getFormVar = function(element) { ...@@ -2297,15 +2297,11 @@ kss.getFormVar = function(element) {
switch (tagName.toLowerCase()) { switch (tagName.toLowerCase()) {
case 'input': case 'input':
switch (element.type) { switch (element.type) {
case 'text':
case 'hidden':
case 'password':
return element.value;
case 'checkbox': case 'checkbox':
case 'radio': case 'radio':
return element.checked ? element.value : null; return element.checked ? element.value : null;
default: default:
return null; return element.value || null;
} }
case 'textarea': case 'textarea':
return element.value; return element.value;
......
This diff is collapsed.
Markdown is supported
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