diff --git a/core/modules/tour/js/tour.js b/core/modules/tour/js/tour.js index fde4f58d4d1de75727b1acd74047a3cee60a3d8c..86ad8a24dd041b5faa981f98ce0e58f35dac5924 100644 --- a/core/modules/tour/js/tour.js +++ b/core/modules/tour/js/tour.js @@ -177,7 +177,8 @@ Drupal.tour.views.ToggleTourView = Backbone.View.extend({ var $this = $(this); var itemId = $this.attr('data-id'); var itemClass = $this.attr('data-class'); - if ((itemId && $document.find('#' + itemId).length) || + if ((!itemId && !itemClass) || + (itemId && $document.find('#' + itemId).length) || (itemClass && $document.find('.' + itemClass).length)){ return; }