diff --git a/apps/school/templates/blocks/day_pay_btn.html b/apps/school/templates/blocks/day_pay_btn.html index f4cd2f40..9f90c17d 100644 --- a/apps/school/templates/blocks/day_pay_btn.html +++ b/apps/school/templates/blocks/day_pay_btn.html @@ -1,5 +1,6 @@ купить diff --git a/apps/school/templates/blocks/schedule.html b/apps/school/templates/blocks/schedule.html index 5f088511..ab97055f 100644 --- a/apps/school/templates/blocks/schedule.html +++ b/apps/school/templates/blocks/schedule.html @@ -10,7 +10,7 @@ {% endfor %}
- + {# include './pay_btn.html' #} Распечатать расписание чтобы не забыть diff --git a/web/src/js/modules/popup.js b/web/src/js/modules/popup.js index b3d98b21..280551d3 100644 --- a/web/src/js/modules/popup.js +++ b/web/src/js/modules/popup.js @@ -34,7 +34,8 @@ $(document).ready(function () { popup; body.on('click', '[data-popup]', function(e){ - let data = $(this).data('popup'); + const $this = $(this); + let data = $this.data('popup'); if(! data) { return true; } @@ -50,7 +51,7 @@ $(document).ready(function () { console.log('reset selected'); $('[data-day]').prop('checked', false); - if ($(this).text() === 'продлить') { + if ($this.text() === 'продлить') { //data-purchased //restore purchased selection console.log('restore purchased'); @@ -72,19 +73,19 @@ $(document).ready(function () { } } if( data === '.js-popup-auth') { - let nextUrl = $(this).data('auth-next-url'); + let nextUrl = $this.data('auth-next-url'); if(nextUrl === 'href') { - nextUrl = $(this).attr('href'); + nextUrl = $this.attr('href'); } popup.data('next-url', nextUrl); } - if($(this).data('day')) { - let day = $(this).data('day'); + if($this.data('day')) { + let day = $this.data('day'); $('[data-day='+day+']').prop('checked', true); } - if(!is_extend && !$(this).data('day')) { + if(!is_extend && !$this.data('day')) { console.log('check all'); $('[data-day]').each(function(){ $(this).prop('checked', true);