Fix: Ausweis öffnet neuen Tab (kein iframe), Mein Tierarzt im Praxen-Tab integriert, SW by-v599
This commit is contained in:
parent
5a412c425c
commit
2677cff882
4 changed files with 16 additions and 11 deletions
|
|
@ -753,13 +753,7 @@ window.Page_dog_profile = (() => {
|
|||
// AUSWEIS
|
||||
// ----------------------------------------------------------
|
||||
function _showAusweisModal(dogId) {
|
||||
UI.modal.open({
|
||||
title: 'Heimtierausweis',
|
||||
body: `<iframe src="/ausweis/${dogId}" class="ausweis-frame" title="Heimtierausweis"></iframe>`,
|
||||
footer: `<button class="btn btn-secondary" onclick="UI.modal.close()">Schließen</button>
|
||||
<a href="/ausweis/${dogId}" target="_blank" class="btn btn-ghost">${UI.icon('printer')} Drucken</a>`,
|
||||
size: 'fullscreen',
|
||||
});
|
||||
window.open(`/ausweis/${dogId}`, '_blank', 'noopener');
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue