Show the journal of the product/chore/battery cards in a dialog

This commit is contained in:
Bernd Bestel
2019-09-27 16:54:40 +02:00
parent 81f6b58fe4
commit 2636456461
7 changed files with 30 additions and 6 deletions

View File

@@ -601,3 +601,27 @@ $(window).on("message", function(e)
bootbox.hideAll();
}
});
$(document).on("click", ".show-as-dialog-link", function(e)
{
e.preventDefault();
var link = $(e.currentTarget).attr("href");
bootbox.dialog({
message: '<iframe height="650px" class="embed-responsive" src="' + link + '"></iframe>',
size: 'large',
backdrop: true,
closeButton: false,
buttons: {
ok: {
label: __t('OK'),
className: 'btn-success responsive-button',
callback: function()
{
bootbox.hideAll();
}
}
}
});
});