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 card = button.closest('.ui.card');
|
||||||
var column = card.closest('.column');
|
var column = card.closest('.column');
|
||||||
|
|
||||||
$('body')
|
/**
|
||||||
.modal({
|
* Update wish status
|
||||||
title : text.modal_wish_fulfil_title,
|
*/
|
||||||
content : text.modal_wish_fulfil,
|
button.api({
|
||||||
class : 'tiny',
|
action : 'update wish status',
|
||||||
actions : [
|
method : 'PUT',
|
||||||
{
|
data : {
|
||||||
text : text.modal_wish_fulfil_approve,
|
wish_id : card.attr('data-id'),
|
||||||
class: 'approve primary'
|
wish_status : wish_status_temporary,
|
||||||
},
|
},
|
||||||
{
|
on : 'now',
|
||||||
text : text.modal_wish_fulfil_deny,
|
onSuccess : function(response, element, xhr) {
|
||||||
class: ''
|
card.dimmer('show');
|
||||||
}
|
},
|
||||||
],
|
|
||||||
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');
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -327,10 +327,6 @@ class Page
|
||||||
modal_wishlist_delete_approve : '<?= __('Yes, delete') ?>',
|
modal_wishlist_delete_approve : '<?= __('Yes, delete') ?>',
|
||||||
modal_wishlist_delete_deny : '<?= __('No, keep') ?>',
|
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_title : '<?= __('Really delete?') ?>',
|
||||||
modal_wish_delete : '<?= __('Would you really like to delete to this wish? It will be gone forever.') ?>',
|
modal_wish_delete : '<?= __('Would you really like to delete to this wish? It will be gone forever.') ?>',
|
||||||
modal_wish_delete_approve : '<?= __('Yes, delete') ?>',
|
modal_wish_delete_approve : '<?= __('Yes, delete') ?>',
|
||||||
|
|
Loading…
Reference in a new issue