Add close button to prompt

This commit is contained in:
Jay Trees 2022-02-23 13:33:28 +01:00
parent ca8bb9490e
commit 8ec5aa3053

View file

@ -12,11 +12,18 @@ $(function() {
closable: false,
actions: [
{
text: 'Show wishlist anyway',
text: 'Close this tab',
class: 'approve primary'
},
{
text: 'Show wishlist anyway',
class: 'deny'
}
],
onApprove: function() {
window.close();
},
onDeny: function() {
$('.wishlist-own').slideUp();
}
})