atcheck/public/js/custom.js

26 lines
720 B
JavaScript
Raw Normal View History

2019-12-13 23:28:16 +01:00
$(document).ready(function(){
$('.add-mn-btn').on('click', function () {
console.log($('.add-mn-btn'));
$('.czytnik').toggleClass('open');
});
$('.add-subject-btn').on('click', function () {
$('.add-subject').toggleClass('open');
if ($('.add-subject').first().hasClass('open')) {
$(this).text('Anuluj')
} else {
$(this).text('Dodaj nowy')
}
});
$('.add-attendance-btn').on('click', function () {
$('.add-attendance').toggleClass('open');
if ($('.add-attendance').first().hasClass('open')) {
$(this).text('Anuluj')
} else {
$(this).text('Dodaj nowy wpis')
}
});
});