From 39e3391ea9531d230888c393a32548f65ab7ce43 Mon Sep 17 00:00:00 2001 From: chughts Date: Tue, 3 Oct 2017 23:58:13 +0100 Subject: [PATCH] default endpoint was not being actioned correctly --- services/natural_language_understanding/v1.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/services/natural_language_understanding/v1.html b/services/natural_language_understanding/v1.html index 8ab999e2..744f0365 100644 --- a/services/natural_language_understanding/v1.html +++ b/services/natural_language_understanding/v1.html @@ -249,10 +249,13 @@ } }; - nluV1.CreateIListener = function(listen, action) { + nluV1.CreateIListener = function(listen, action, opp=false) { listen.change(function(val){ var isSet = listen.prop('checked'); - nluV1.setVisibility(action, listen.prop('checked')); + if (opp) { + isSet = !isSet; + } + nluV1.setVisibility(action, isSet); }); } @@ -283,7 +286,7 @@ nluV1.CreateIListener($('#node-input-default-endpoint'), - $('#nnode-input-service-endpoint')); + $('#node-input-service-endpoint'), true); }