Skip to content
Snippets Groups Projects
Commit ae1116df authored by Alex Pott's avatar Alex Pott
Browse files

Issue #1995152 by nick_schuch: Fixed Broken selector.

parent f584bd94
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment