Remove fulfill wish prompt
This commit is contained in:
parent
8f0f52d62c
commit
714fe80fba
2 changed files with 14 additions and 37 deletions
|
@ -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');
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -327,10 +327,6 @@ class Page
|
|||
modal_wishlist_delete_approve : '<?= __('Yes, delete') ?>',
|
||||
modal_wishlist_delete_deny : '<?= __('No, keep') ?>',
|
||||
|
||||
modal_wish_fulfil_title : '<?= __('Fulfil wish') ?>',
|
||||
modal_wish_fulfil : '<?= __('Would you really like to fulfil this wish? It will no longer appear in the wishlist for others anymore.') ?>',
|
||||
modal_wish_fulfil_approve : '<?= __('Yes, fulfil wish') ?>',
|
||||
modal_wish_fulfil_deny : '<?= __('Cancel') ?>',
|
||||
modal_wish_delete_title : '<?= __('Really delete?') ?>',
|
||||
modal_wish_delete : '<?= __('Would you really like to delete to this wish? It will be gone forever.') ?>',
|
||||
modal_wish_delete_approve : '<?= __('Yes, delete') ?>',
|
||||
|
|
Loading…
Reference in a new issue