From 714fe80fbaed56452900539ce4a53b725d3093d2 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Sun, 10 Apr 2022 13:39:02 +0200 Subject: [PATCH] Remove fulfill wish prompt --- src/assets/js/wishlist.js | 47 ++++++++++++--------------------------- src/classes/page.php | 4 ---- 2 files changed, 14 insertions(+), 37 deletions(-) diff --git a/src/assets/js/wishlist.js b/src/assets/js/wishlist.js index cce45412..7f6adff5 100644 --- a/src/assets/js/wishlist.js +++ b/src/assets/js/wishlist.js @@ -40,39 +40,20 @@ $(function() { var card = button.closest('.ui.card'); var column = card.closest('.column'); - $('body') - .modal({ - title : text.modal_wish_fulfil_title, - content : text.modal_wish_fulfil, - class : 'tiny', - actions : [ - { - text : text.modal_wish_fulfil_approve, - class: 'approve primary' - }, - { - text : text.modal_wish_fulfil_deny, - class: '' - } - ], - autoShow : true, - onApprove: function() { - /** - * Update wish status - */ - button.api({ - action : 'update wish status', - method : 'PUT', - data : { - wish_id : card.attr('data-id'), - wish_status : wish_status_temporary, - }, - on : 'now', - onSuccess : function(response, element, xhr) { - card.dimmer('show'); - }, - }); - } + /** + * Update wish status + */ + button.api({ + action : 'update wish status', + method : 'PUT', + data : { + wish_id : card.attr('data-id'), + wish_status : wish_status_temporary, + }, + on : 'now', + onSuccess : function(response, element, xhr) { + card.dimmer('show'); + }, }); }); diff --git a/src/classes/page.php b/src/classes/page.php index 79e42e39..d9a5a43d 100644 --- a/src/classes/page.php +++ b/src/classes/page.php @@ -327,10 +327,6 @@ class Page modal_wishlist_delete_approve : '', modal_wishlist_delete_deny : '', - modal_wish_fulfil_title : '', - modal_wish_fulfil : '', - modal_wish_fulfil_approve : '', - modal_wish_fulfil_deny : '', modal_wish_delete_title : '', modal_wish_delete : '', modal_wish_delete_approve : '',