Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Commit

Permalink
Merge branch 'v3-issues' of github.com:watson-developer-cloud/visual-…
Browse files Browse the repository at this point in the history
…recognition-nodejs
  • Loading branch information
germanattanasio committed Jun 24, 2016
2 parents 085fac7 + 0670ec5 commit f78d556
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/js/use.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,15 @@ function setupUse(params) {
$radioImages.click(function() {
var rI = $(this);
var imgPath = rI.next('label').find('img').attr('src');

$urlInput.hide();
classifyImage(imgPath, null, function() {
$('input[type=radio][name=use--example-images]').prop('disabled', true);
resetPasteUrl();
rI.parent().find('label').addClass('dim');
rI.parent().find('label[for=' + rI.attr('id') + ']').removeClass('dim');
}, function() {
$urlInput.val('');
$urlInput.show();
$('input[type=radio][name=use--example-images]').prop('disabled', false);
});
});
Expand Down

0 comments on commit f78d556

Please sign in to comment.