Issue #1995152 by nick_schuch: Fixed Broken selector.

8.0.x
Alex Pott 2013-06-11 00:52:23 +01:00
parent f584bd94e5
commit ae1116df04
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}