Sha256: f21af6d7ea673f0bf5d209ae3a8149627edb38b89ffbe9646dbfc7366fbca2bb
Contents?: true
Size: 784 Bytes
Versions: 33
Compression:
Stored size: 784 Bytes
Contents
// In the New Activity Form $(document).on('click', '[data-cpd-show-activity]', function(event) { event.preventDefault() let $obj = $(event.currentTarget) let $form = $obj.siblings('.statement-activity-form') let $tabContent = $obj.closest('.tab-content').children('.statement-activity-content') $tabContent.html($form.html()) $tabContent.siblings('.active').removeClass('active') $tabContent.addClass('active') }); $(document).on('click', '[data-cpd-back-activity]', function(event) { event.preventDefault() let $activities = $(event.currentTarget).closest('.activities-new') let anchor = $activities.find('.nav[role=tablist]').find('a.nav-link.active').first().attr('href') $(anchor).siblings('.active').removeClass('active').end().addClass('active') });
Version data entries
33 entries across 33 versions & 1 rubygems