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
* Author: Thimo Kraemer <thimo.kraemer@joonis.de>
......@@ -61,7 +61,7 @@
******************************************************************************************/
var kss = {
version: '0.23-beta',
version: '0.24-beta',
_initialized: false,
_ruleSheets: {},
_nodeRegister: {},
......@@ -2297,15 +2297,11 @@ kss.getFormVar = function(element) {
switch (tagName.toLowerCase()) {
case 'input':
switch (element.type) {
case 'text':
case 'hidden':
case 'password':
return element.value;
case 'checkbox':
case 'radio':
return element.checked ? element.value : null;
default:
return null;
return element.value || null;
}
case 'textarea':
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