Subversion Repositories wpShopGermany4

Rev

Rev 7210 | Rev 7561 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7210 Rev 7486
Line 180... Line 180...
180
		
180
		
181
		}
181
		}
182
	
182
	
183
		var WPSG_BE_Voucher = {
183
		var WPSG_BE_Voucher = {
184
			
184
			
185
			editVoucher: function() {
185
			editVoucher: function(order_voucher_id) {
186
	
186
	
187
				jQuery('#wpsg_voucher_dialog .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
187
				jQuery('#wpsg_voucher_dialog .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
188
				jQuery('#wpsg_voucher_dialog').modal( { } ).modal('show');
188
				jQuery('#wpsg_voucher_dialog').modal( { } ).modal('show');
189
	
189
	
190
				jQuery.ajax( {
190
				jQuery.ajax( {
191
					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',
191
					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',
192
					success: function(data) {
192
					success: function(data) {
193
	
193
	
194
						jQuery('#wpsg_voucher_dialog .modal-body').html(data);
194
						jQuery('#wpsg_voucher_dialog .modal-body').html(data);
195
	
195
	
196
					}
196
					}
Line 198... Line 198...
198
	
198
	
199
				return false;
199
				return false;
200
				
200
				
201
			},
201
			},
202
			
202
			
203
			removeVoucher: function() {
203
			removeVoucher: function(order_voucher_id) {
204
	
204
	
205
				jQuery('#wpsg_product_table_wrap').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
205
				jQuery('#wpsg_product_table_wrap').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
206
	
206
	
207
				jQuery.ajax( {
207
				jQuery.ajax( {
208
					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',
208
					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',
209
					success: function(data) {
209
					success: function(data) {
210
	
210
	
211
						jQuery('#wpsg_product_table_wrap').html(data.product_table);
211
						jQuery('#wpsg_product_table_wrap').html(data.product_table);
212
	
212
	
213
					}
213
					}