Skip to content

Commit 4773fce

Browse files
authored
Merge pull request #335 from chughts/qfix
Endpoint fix to NLU Node
2 parents 1efec80 + 39e3391 commit 4773fce

File tree

1 file changed

+6
-3
lines changed
  • services/natural_language_understanding

1 file changed

+6
-3
lines changed

services/natural_language_understanding/v1.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,13 @@
249249
}
250250
};
251251

252-
nluV1.CreateIListener = function(listen, action) {
252+
nluV1.CreateIListener = function(listen, action, opp=false) {
253253
listen.change(function(val){
254254
var isSet = listen.prop('checked');
255-
nluV1.setVisibility(action, listen.prop('checked'));
255+
if (opp) {
256+
isSet = !isSet;
257+
}
258+
nluV1.setVisibility(action, isSet);
256259
});
257260
}
258261

@@ -283,7 +286,7 @@
283286

284287

285288
nluV1.CreateIListener($('#node-input-default-endpoint'),
286-
$('#nnode-input-service-endpoint'));
289+
$('#node-input-service-endpoint'), true);
287290

288291
}
289292

0 commit comments

Comments
 (0)