Mercurial > hg > isophonics-drupal-site
comparison core/modules/tour/js/tour.js @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
61 toggleTour: function toggleTour() { | 61 toggleTour: function toggleTour() { |
62 if (this.model.get('isActive')) { | 62 if (this.model.get('isActive')) { |
63 var $tour = this._getTour(); | 63 var $tour = this._getTour(); |
64 this._removeIrrelevantTourItems($tour, this._getDocument()); | 64 this._removeIrrelevantTourItems($tour, this._getDocument()); |
65 var that = this; | 65 var that = this; |
66 var close = Drupal.t('Close'); | |
66 if ($tour.find('li').length) { | 67 if ($tour.find('li').length) { |
67 $tour.joyride({ | 68 $tour.joyride({ |
68 autoStart: true, | 69 autoStart: true, |
69 postRideCallback: function postRideCallback() { | 70 postRideCallback: function postRideCallback() { |
70 that.model.set('isActive', false); | 71 that.model.set('isActive', false); |
71 }, | 72 }, |
72 | 73 |
73 template: { | 74 template: { |
74 link: '<a href=\"#close\" class=\"joyride-close-tip\">×</a>', | 75 link: '<a href="#close" class="joyride-close-tip" aria-label="' + close + '">×</a>', |
75 button: '<a href=\"#\" class=\"button button--primary joyride-next-tip\"></a>' | 76 button: '<a href="#" class="button button--primary joyride-next-tip"></a>' |
76 } | 77 } |
77 }); | 78 }); |
78 this.model.set({ isActive: true, activeTour: $tour }); | 79 this.model.set({ isActive: true, activeTour: $tour }); |
79 } | 80 } |
80 } else { | 81 } else { |