mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Calendar: Fix hide/show of selected day contents
This commit is contained in:
@@ -107,7 +107,7 @@
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
<tr class="selected-day">
|
||||
<tr class="selected-day hidden">
|
||||
<td colspan="7"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@@ -321,7 +321,7 @@ $(function () {
|
||||
var $tr = $(this).closest(".table-calendar").find(".selected-day");
|
||||
$tr.find("td").html($(this).find(".events").html());
|
||||
$tr.find("td").prepend($("<h3>").text($(this).attr("data-date")));
|
||||
$tr.show();
|
||||
$tr.removeClass("hidden");
|
||||
});
|
||||
|
||||
$(".print-this-page").on("click", function (e) {
|
||||
|
||||
@@ -69,9 +69,6 @@
|
||||
background: darken($brand-primary, 15%);
|
||||
}
|
||||
}
|
||||
.selected-day {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.week-calendar {
|
||||
.weekday {
|
||||
@@ -123,6 +120,13 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
@media (min-width: $screen-sm-min) {
|
||||
.table-calendar, .week-calendar {
|
||||
.selected-day {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
@media (max-width: $screen-xs-max) {
|
||||
.table-calendar .day .events {
|
||||
display: none;
|
||||
|
||||
Reference in New Issue
Block a user