Subversion Repositories wpShopGermany4

Rev

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

Rev 7486 Rev 7561
Line 49... Line 49...
49
	
49
	
50
				jQuery('#wpsg_shipping_dialog .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
50
				jQuery('#wpsg_shipping_dialog .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
51
				jQuery('#wpsg_shipping_dialog').modal( { } ).modal('show');
51
				jQuery('#wpsg_shipping_dialog').modal( { } ).modal('show');
52
								
52
								
53
				jQuery.ajax( {
53
				jQuery.ajax( {
-
 
54
					url: '<?php 
-
 
55
						
54
					url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&subaction=editPayShipping&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1',
56
						echo wpsg_admin_url('Order', 'view', ['subaction' => 'editPayShipping', 'edit_id' => $_REQUEST['edit_id']], ['noheader' => '1'], true);
-
 
57
					
-
 
58
					?>',
55
					success: function(data) {
59
					success: function(data) {
56
	
60
	
57
						jQuery('#wpsg_shipping_dialog .modal-body').html(data);
61
						jQuery('#wpsg_shipping_dialog .modal-body').html(data);
58
	
62
	
59
					}
63
					}
Line 103... Line 107...
103
				jQuery('#wpsg_product_dialog .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
107
				jQuery('#wpsg_product_dialog .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
104
				jQuery('#wpsg_product_dialog').modal( { } ).modal('show');
108
				jQuery('#wpsg_product_dialog').modal( { } ).modal('show');
105
				jQuery('#wpsg_product_dialog .btn-primary').prop('disabled', true);
109
				jQuery('#wpsg_product_dialog .btn-primary').prop('disabled', true);
106
				
110
				
107
				jQuery.ajax( {
111
				jQuery.ajax( {
-
 
112
					url: '<?php 
-
 
113
						
108
					url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&subaction=addProduct&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1',
114
						echo wpsg_admin_url('Order', 'view', ['subaction' => 'addProduct', 'edit_id' => $_REQUEST['edit_id']], ['noheader' => '1'], true); 
-
 
115
						
-
 
116
					?>',
109
					success: function(data) {
117
					success: function(data) {
110
		
118
		
111
						jQuery('#wpsg_product_dialog .modal-body').html(data);
119
						jQuery('#wpsg_product_dialog .modal-body').html(data);
112
		
120
		
113
					}
121
					}
Line 120... Line 128...
120
			removeProduct: function(order_product_id) {
128
			removeProduct: function(order_product_id) {
121
	
129
	
122
				jQuery('#wpsg_product_table_wrap').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
130
				jQuery('#wpsg_product_table_wrap').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
123
				
131
				
124
				jQuery.ajax( {
132
				jQuery.ajax( {
-
 
133
					url: '<?php 
-
 
134
						
125
					url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&subaction=removeProduct&noheader=1&edit_id=<?php echo $_REQUEST['edit_id']; ?>',
135
						echo wpsg_admin_url('Order', 'view', ['subaction' => 'removeProduct', 'edit_id' => $_REQUEST['edit_id']], ['noheader' => '1'], true);
-
 
136
						
-
 
137
					?>',
126
					data: { 
138
					data: { 
127
						order_product_id: order_product_id
139
						order_product_id: order_product_id
128
					},
140
					},
129
					success: function(data) {
141
					success: function(data) {
130
	
142
	
Line 142... Line 154...
142
				jQuery('#wpsg_product_dialog .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
154
				jQuery('#wpsg_product_dialog .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
143
				jQuery('#wpsg_product_dialog').modal( { } ).modal('show');
155
				jQuery('#wpsg_product_dialog').modal( { } ).modal('show');
144
				jQuery('#wpsg_product_dialog .btn-primary').prop('disabled', true);
156
				jQuery('#wpsg_product_dialog .btn-primary').prop('disabled', true);
145
	
157
	
146
				jQuery.ajax( {
158
				jQuery.ajax( {
-
 
159
					url: '<?php
-
 
160
					
147
					url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&subaction=addProduct&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1',
161
						echo wpsg_admin_url('Order', 'view', ['subaction' => 'addProduct', 'edit_id' => $_REQUEST['edit_id']], ['noheader' => '1'], true);
-
 
162
					
-
 
163
					?>',
148
					data: {
164
					data: {
149
						order_product_id: order_product_id  
165
						order_product_id: order_product_id  
150
					},
166
					},
151
					success: function(data) {
167
					success: function(data) {
152
	
168
	
Line 163... Line 179...
163
	 
179
	 
164
				jQuery('#wpsg_product_dialog').modal('hide');
180
				jQuery('#wpsg_product_dialog').modal('hide');
165
				jQuery('#wpsg_product_table_wrap').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
181
				jQuery('#wpsg_product_table_wrap').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
166
	
182
	
167
				jQuery.ajax( {
183
				jQuery.ajax( {
-
 
184
					url: '<?php 
-
 
185
					
168
					url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&subaction=addProduct&do=submit&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1',
186
						echo wpsg_admin_url('Order', 'view', ['edit_id' => $_REQUEST['edit_id'], 'do' => 'submit', 'subaction' => 'addProduct'], ['noheader' => '1'], true);
-
 
187
						
-
 
188
					?>',
169
					data: jQuery('#wpsg_product_add_form').serialize(),
189
					data: jQuery('#wpsg_product_add_form').serialize(),
170
					success: function(data) {
190
					success: function(data) {
171
	
191
	
172
						jQuery('#wpsg_product_table_wrap').html(data.product_table);
192
						jQuery('#wpsg_product_table_wrap').html(data.product_table);
173
	
193
	
Line 176... Line 196...
176
	
196
	
177
				return false;
197
				return false;
178
	
198
	
179
			}
199
			}
180
		
200
		
181
		}
201
		};
182
	
202
	
183
		var WPSG_BE_Voucher = {
203
		var WPSG_BE_Voucher = {
184
			
204
			
185
			editVoucher: function(order_voucher_id) {
205
			editVoucher: function(order_voucher_id) {
186
	
206
	
Line 299... Line 319...
299
		var WPSG_BE_Mail = {
319
		var WPSG_BE_Mail = {
300
			
320
			
301
			sendCustomerMail: function(order_id) {
321
			sendCustomerMail: function(order_id) {
302
 
322
 
303
				jQuery.ajax( {
323
				jQuery.ajax( {
-
 
324
					url: '<?php 
-
 
325
						
304
					url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&subaction=sendMail&do=customer&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1',
326
						echo wpsg_admin_url('Order', 'view', ['subaction' => 'sendMail', 'do' => 'customer', 'edit_id' => $_REQUEST['edit_id']], ['noheader' => '1'], true);				
-
 
327
						
-
 
328
					?>',
305
					data: jQuery('#wpsg_be_discount_form').serialize(),
329
					data: jQuery('#wpsg_be_discount_form').serialize(),
306
					success: function(data) { alert(data); }
330
					success: function(data) { alert(data); }
307
				} );
331
				} );
308
 
332
 
309
				return false;
333
				return false;