From 8ec5aa3053f6d183d83e2703e9ecd7225f2370b6 Mon Sep 17 00:00:00 2001 From: Jay Trees Date: Wed, 23 Feb 2022 13:33:28 +0100 Subject: [PATCH] Add close button to prompt --- src/assets/js/wishlist.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/assets/js/wishlist.js b/src/assets/js/wishlist.js index c0d70cd7..bd539c41 100644 --- a/src/assets/js/wishlist.js +++ b/src/assets/js/wishlist.js @@ -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(); } })