Subversion Repositories wpShopGermany4

Rev

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

Rev 7851 Rev 7879
Line 302... Line 302...
302
                                type: 'select'
302
                                type: 'select'
303
                            });
303
                            });
304
 
304
 
305
                        </script>
305
                        </script>
306
 
306
 
-
 
307
                        <?php if (intval($this->view['product_id']) <= 0) { ?>
-
 
308
                        <span style="padding-left:15px;">
-
 
309
                            <span style="display:inline-block; margin-right:5px;"><?php echo __('Für alle Downloadplus Produkte:', 'wpsg'); ?></span>
-
 
310
                            <a onclick="return wpsg_mod_downloadplus_setProducts(<?php echo $vari['id']; ?>, '1');" href="#" style="display:inline-block;"><?php echo __('aktivieren', 'wpsg'); ?></a>
-
 
311
                            <span style="margin:0 3px; text-align:center;">/</span>
-
 
312
                            <a onclick="return wpsg_mod_downloadplus_setProducts(<?php echo $vari['id']; ?>, '0');" href="#" style="display:inline-block;"><?php echo __('deaktivieren', 'wpsg'); ?></a>
-
 
313
                        </span>
-
 
314
                        <?php } ?>
-
 
315
 
307
                    </div>
316
                    </div>
308
                    <?php } ?>
317
                    <?php } ?>
309
					
318
					
310
					<script>
319
					<script>
311
 
320
 
-
 
321
                        function wpsg_mod_downloadplus_setProducts(vari_id, active) {
-
 
322
 
-
 
323
                        	jQuery.ajax( {
-
 
324
                                url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&subaction=admin_wpsg_mod_downloadplus_setProducts&noheader=1',
-
 
325
                                async: false,
-
 
326
                                data: {
-
 
327
                                    vari_id: vari_id,
-
 
328
                                    active: active
-
 
329
                                },
-
 
330
                                success: function(data) {
-
 
331
 
-
 
332
                                    if (data != '1') alert(data);
-
 
333
 
-
 
334
                                }
-
 
335
                            } );
-
 
336
 
-
 
337
                        	return false;
-
 
338
 
-
 
339
                        }
-
 
340
 
312
						jQuery(document).ready(function() {   
341
						jQuery(document).ready(function() {   
313
 
342
 
314
							<?php if (intval($this->view['product_id']) <= 0) { ?>
343
							<?php if (intval($this->view['product_id']) <= 0) { ?>
315
							document.getElementById('media_upload_<?php echo $vari['id']; ?>').addEventListener('click', (event) => {
344
							document.getElementById('media_upload_<?php echo $vari['id']; ?>').addEventListener('click', (event) => {
316
 
345