Das Mehrfachbuchungsformular hat ebenfalls die Schnittmenge der Leistungen und Kategorien von den ausgewählten Hilfeplänen. Das Caching ist wieder aktiviert. Und lädt pro Post-Aufruf nur noch einmal 13 MB und danach nur noch 300 kb herunter. Überall konsequent geprüft, ob das Model nicht null ist und falls dem so ist, wird ausgeloggt, damit es zu keinen Fehlern mehr kommt.
52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
@using BeWoPlanerMobil.Util
|
|
@model BeWoPlanerMobil.Models.MainModel
|
|
|
|
@{
|
|
if(TempData[TempDataConstants.DoLogoutKey] is bool doLogout && doLogout)
|
|
{
|
|
<text>
|
|
<script type="text/javascript">
|
|
$("#second-logout-form").submit();
|
|
</script>
|
|
</text>
|
|
}
|
|
}
|
|
|
|
@if(Model.OneTimeLink != null)
|
|
{
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
try {
|
|
$(function () {
|
|
$('[data-toggle="popover"]').popover();
|
|
});
|
|
|
|
$('.popover-dismiss').popover({
|
|
trigger: 'focus'
|
|
});
|
|
} catch(error) {
|
|
showErrorPopup(error);
|
|
}
|
|
});
|
|
|
|
function copyExternalLinkToClipboard() {
|
|
try {
|
|
const link = document.querySelector("#one-time-link");
|
|
const range = document.createRange();
|
|
|
|
range.selectNode(link);
|
|
|
|
const selection = window.getSelection();
|
|
selection.removeAllRanges();
|
|
selection.addRange(range);
|
|
|
|
const successful = document.execCommand("copy");
|
|
} catch(error) {
|
|
showErrorPopup(error);
|
|
}
|
|
}
|
|
</script>
|
|
|
|
@Html.Raw(Model.OneTimeLinkText)
|
|
<a class="text-break" href="@Model.OneTimeLink" id="one-time-link">@Model.OneTimeLink</a>
|
|
} |