26 lines
720 B
JavaScript
26 lines
720 B
JavaScript
$(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')
|
|
}
|
|
});
|
|
});
|