Commit ae1116df authored by alexpott's avatar alexpott
Browse files

Issue #1995152 by nick_schuch: Fixed Broken selector.

parent f584bd94
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment