summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpengbo2017-08-28 00:09:21 +0000
committerpengbo2017-08-28 00:09:21 +0000
commit8e919744217efae6d6f71a1a07a681183e79c813 (patch)
tree515a588c955091be17fad02d8d60b51b2cc299be
parent649f0bb0b7be9c824c9fe19f3287639d3f0e0109 (diff)
Fix bugs in js/pgconfig.js used for setting pgpool.conf.
[pgpool-general: 5660]
-rw-r--r--js/pgconfig.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/pgconfig.js b/js/pgconfig.js
index 035282f..ab13187 100644
--- a/js/pgconfig.js
+++ b/js/pgconfig.js
@@ -15,6 +15,9 @@ function toggleTbody(item)
if (tagname == 'INPUT' && $(item).attr('type') == 'radio') {
val = $(item).filter(':checked').val();
+ if (val === undefined) {
+ return;
+ }
} else if (tagname == 'SELECT') {
val = $(item).children('option').filter(':selected').val();