diff options
Diffstat (limited to 'views/order/view_orderdata.phtml')
| -rw-r--r-- | views/order/view_orderdata.phtml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/views/order/view_orderdata.phtml b/views/order/view_orderdata.phtml index 69df736..5f63a8d 100644 --- a/views/order/view_orderdata.phtml +++ b/views/order/view_orderdata.phtml @@ -182,13 +182,13 @@ var WPSG_BE_Voucher = {
- editVoucher: function() {
+ editVoucher: function(order_voucher_id) {
jQuery('#wpsg_voucher_dialog .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
jQuery('#wpsg_voucher_dialog').modal( { } ).modal('show');
jQuery.ajax( {
- url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&subaction=editVoucher&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1',
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&subaction=editVoucher&edit_id=<?php echo $_REQUEST['edit_id']; ?>&order_voucher_id=' + order_voucher_id + '&noheader=1',
success: function(data) {
jQuery('#wpsg_voucher_dialog .modal-body').html(data);
@@ -200,12 +200,12 @@ },
- removeVoucher: function() {
+ removeVoucher: function(order_voucher_id) {
jQuery('#wpsg_product_table_wrap').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
jQuery.ajax( {
- url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&subaction=editVoucher&do=remove&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1',
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&subaction=editVoucher&do=remove&edit_id=<?php echo $_REQUEST['edit_id']; ?>&order_voucher_id=' + order_voucher_id + '&noheader=1',
success: function(data) {
jQuery('#wpsg_product_table_wrap').html(data.product_table);
|
