ec-tour
Version:
Campus Tour for Apostrophe CMS
19 lines (17 loc) • 533 B
JavaScript
module.exports = {
extend: 'apostrophe-pieces-widgets',
label: 'Ec Tour Widget',
contextualOnly: true,
addFields: [],
construct: function(self, options) {
self.pushAsset('script', 'always', 'always');
self.pushAsset('stylesheet', 'list', 'always');
self.play = function($widget, data, options) {
$widget.find('[data-tags]').click(function(e) {
$widget.find('[data-tags]').toggle();
// Stop bubbling and default behavior for jQuery event
return false;
});
};
}
};