Skip to content

Commit

Permalink
dynamisch erzeugte watson-buttons unterstützen (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored and tbaddade committed Oct 27, 2018
1 parent 0f98325 commit 0caf0dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions assets/watson.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ jQuery(function($){
var $watsonOverlay = $('#watson-overlay');

$(document).ready( function() {

$watsonOverlay.click(function(){
hideWatsonAgent();
});

$('.watson-btn').click(function(){
checkWatsonAgent();
});
});

// support buttons created dynamically
$(document).on('click', '.watson-btn', function(){
checkWatsonAgent();
});

$(document).keydown(function(e) {
Expand Down

0 comments on commit 0caf0dc

Please sign in to comment.