vendor/assets/javascripts/base/_tour.js in active_frontend-16.0.16 vs vendor/assets/javascripts/base/_tour.js in active_frontend-16.0.17
- old
+ new
@@ -45,11 +45,11 @@
Tour.prototype.constructor = Tour;
Tour.prototype.init = function () {
var _self = this;
- this.$element.click(function () {
+ this.$element.on('click', function () {
if (_self.$totalItems === 0) return this;
if (_self.$active) {
_self.endTour();
} else {
@@ -142,11 +142,11 @@
var element = $(item.id);
this.removeItems();
$.event.trigger({
- type: 'bs.tour.on-show',
+ type: 'show.bs.tour',
item: item
});
this.options.onShowCallback(item);
if (element.length !== 0 && element.is(':visible')) {
@@ -165,17 +165,17 @@
setTimeout(function () {
element.popover('show');
}, 225);
$.event.trigger({
- type: 'bs.tour.on-shown',
+ type: 'shown.bs.tour',
item: item
});
this.options.onShownCallback(item);
} else {
if (this.options.skip) this.nextItem();
$.event.trigger({
- type: 'bs.tour.on-miss',
+ type: 'miss.bs.tour',
item: item
});
this.options.onMissCallback(item);
}
};