Commit fcf74af5 authored by alexpott's avatar alexpott

Issue #1982008 by nick_schuch: Modal if no tour tip id or class is provided.

parent f31f0b1b
......@@ -177,7 +177,7 @@ Drupal.tour.views.ToggleTourView = Backbone.View.extend({
var $this = $(this);
var itemId = $this.attr('data-id');
var itemClass = $this.attr('data-class');
if ($document.find('#' + itemId + ', .' + itemClass).length === 0) {
if ((itemId || itemClass) && $document.find('#' + itemId + ', .' + itemClass).length === 0) {
removals = true;
$this.remove();
}
......
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