Subversion Repositories wpShopGermany4

Rev

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

Rev 7903 Rev 8388
Line 102... Line 102...
102
	
102
	
103
		<div class="wpsg_clear"></div>
103
		<div class="wpsg_clear"></div>
104
	
104
	
105
	</form>
105
	</form>
106
	
106
	
-
 
107
	<div style="position:fixed; left:0; top:0; width:100vw; height:100vh; background-color:rgba(255, 255, 255, 0.5); display:none;" id="pppl_loading_blocker"></div>
-
 
108
	
107
	<script type="text/javascript">/* <![CDATA[ */
109
	<script type="text/javascript">/* <![CDATA[ */
108
 
110
 
-
 
111
		const el_pppl_loading_blocker = document.getElementById('pppl_loading_blocker');
-
 
112
		
109
		function wpsg_setShipPay(jqElement)
113
		function wpsg_setShipPay(jqElement)
110
		{
114
		{
111
 
115
 
112
			jqElement.parents('.shippay_wrap').find('.shippay_item_wrap').removeClass('shippay_active');
116
			jqElement.parents('.shippay_wrap').find('.shippay_item_wrap').removeClass('shippay_active');
113
			jqElement.addClass('shippay_active');
117
			jqElement.addClass('shippay_active');
Line 120... Line 124...
120
    
124
    
121
		jQuery(document).ready(function() {
125
		jQuery(document).ready(function() {
122
 
126
 
123
			jQuery('.shippay_wrap .shippay_item_wrap').bind('click', function() {
127
			jQuery('.shippay_wrap .shippay_item_wrap').bind('click', function() {
124
 
128
 
-
 
129
				el_pppl_loading_blocker.style.display = 'block';
-
 
130
				
125
				wpsg_setShipPay(jQuery(this)); 
131
				wpsg_setShipPay(jQuery(this)); 
126
				
132
				
127
				jQuery.ajax( {
133
				jQuery.ajax( {
128
					'url': wpsg_ajax.ajaxurl,
134
					'url': wpsg_ajax.ajaxurl,
129
					'method': 'get',
135
					'method': 'get',
130
					'data': {
136
					'data': {
131
						'wpsg[action]': 'updateCheckout',
137
						'wpsg[action]': 'updateCheckout',
132
						'wpsg_form_data': jQuery('#wpsg_checkout_form').serialize()						
138
						'wpsg_form_data': jQuery('#wpsg_checkout_form').serialize()						
133
					},
139
					},
134
					'async': true,
140
					'async': true,
135
					'success': function(data) { }
141
					'success': function(data) {
-
 
142
						
-
 
143
						location.reload();
-
 
144
						
-
 
145
					}
136
				} );
146
				} );
137
				 
147
				 
138
			} );
148
			} );
139
 
149
 
140
			jQuery('.shippay_wrap .shippay_item_wrap').each(function() {
150
			jQuery('.shippay_wrap .shippay_item_wrap').each(function() {