Skip to content

Commit

Permalink
Merge pull request #335 from chughts/qfix
Browse files Browse the repository at this point in the history
Endpoint fix to NLU Node
  • Loading branch information
chughts committed Oct 3, 2017
2 parents 1efec80 + 39e3391 commit 4773fce
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions services/natural_language_understanding/v1.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}

Expand Down Expand Up @@ -283,7 +286,7 @@


nluV1.CreateIListener($('#node-input-default-endpoint'),
$('#nnode-input-service-endpoint'));
$('#node-input-service-endpoint'), true);

}

Expand Down

0 comments on commit 4773fce

Please sign in to comment.