Line 7... |
Line 7... |
7 |
|
7 |
|
8 |
?>
|
8 |
?>
|
9 |
|
9 |
|
10 |
<div id="wpsg_mod_productvariants_dialog" class="wpsg_mod_productvariants_dialog_noDialog">
|
10 |
<div id="wpsg_mod_productvariants_dialog" class="wpsg_mod_productvariants_dialog_noDialog">
|
11 |
|
11 |
|
12 |
<div class="modal-body">
|
12 |
<div class="modal-body">
|
13 |
|
13 |
|
14 |
</div>
|
14 |
</div>
|
15 |
<div class="modal-footer">
|
15 |
<div class="modal-footer">
|
16 |
|
16 |
|
17 |
<button type="button" class="btn-sm wpsg_mod_productvariants_variants btn btn-default" onclick="return wpsg_mod_productvariants_add();"><span class="glyphicon glyphicon-plus"></span> <?php echo __('Neue Produktvariante', 'wpsg'); ?></button>
|
17 |
<button type="button" class="btn-sm wpsg_mod_productvariants_variants btn btn-default" onclick="return wpsg_mod_productvariants_add();"><span class="glyphicon glyphicon-plus"></span> <?php
|
18 |
<button type="button" class="btn-sm wpsg_mod_productvariants_variants_vari btn btn-default" id="wpsg_mod_productvariants_variation_add_button" style="display:none;" onclick="return wpsg_mod_productvariants_variation_add();"><span class="glyphicon glyphicon-plus"></span> <?php echo __('Neue Variation', 'wpsg'); ?></button>
|
18 |
|
- |
|
19 |
echo ((wpsg_isSizedInt($_REQUEST['edit_id'])?__('Neue Produktvariante', 'wpsg'):__('Neue Variante', 'wpsg')));
|
19 |
|
20 |
|
- |
|
21 |
?></button>
|
- |
|
22 |
|
20 |
</div>
|
23 |
</div>
|
21 |
|
24 |
|
22 |
</div>
|
25 |
</div>
|
23 |
|
26 |
|
24 |
<div id="wpsg_mod_productvariants_dialog_modal" class="modal fade" tabindex="-1" role="dialog">
|
27 |
<div id="wpsg_mod_productvariants_dialog_modal" class="modal fade" tabindex="-1" role="dialog">
|
25 |
<div class="modal-dialog" role="document">
|
28 |
<div class="modal-dialog" role="document">
|
Line 31... |
Line 34... |
31 |
<div class="modal-body">
|
34 |
<div class="modal-body">
|
32 |
|
35 |
|
33 |
</div>
|
36 |
</div>
|
34 |
<div class="modal-footer">
|
37 |
<div class="modal-footer">
|
35 |
|
38 |
|
36 |
<button type="button" class="btn-sm wpsg_mod_productvariants_variants_vari btn btn-default" id="wpsg_mod_productvariants_variation_add_button" style="display:none;" onclick="return wpsg_mod_productvariants_variation_add();"><span class="glyphicon glyphicon-plus"></span> <?php echo __('Neue Variation', 'wpsg'); ?></button>
|
39 |
<button type="button" class="btn-sm wpsg_mod_productvariants_variation_add_button btn btn-default" id="wpsg_mod_productvariants_variation_add_button" style="display:none;" onclick="return wpsg_mod_productvariants_variation_add();"><span class="glyphicon glyphicon-plus"></span> <?php echo __('Neue Variation', 'wpsg'); ?></button>
|
37 |
<button type="button" class="btn-sm wpsg_mod_productvariants_variants_vari btn btn-default" style="display:none;" onclick="return wpsg_mod_productvariants_back();"><span class="glyphicon glyphicon-chevron-left"></span> <?php echo __('Schließen', 'wpsg'); ?></button>
|
40 |
<button type="button" class="btn-sm wpsg_mod_productvariants_variants_close wpsg_mod_productvariants_variants_vari btn btn-default" style="display:none;" onclick="return wpsg_mod_productvariants_back();"><span class="glyphicon glyphicon-remove"></span> <?php echo __('Schließen', 'wpsg'); ?></button>
|
38 |
|
41 |
|
39 |
</div>
|
42 |
</div>
|
40 |
</div>
|
43 |
</div>
|
41 |
</div>
|
44 |
</div>
|
42 |
</div>
|
45 |
</div>
|
43 |
|
46 |
|
44 |
<script type="text/javascript">/* <![CDATA[ */
|
47 |
<script type="text/javascript">/* <![CDATA[ */
|
45 |
|
48 |
|
46 |
function wpsg_mod_productvariants_del(variant_id)
|
49 |
function wpsg_mod_productvariants_del(variant_id)
|
47 |
{
|
50 |
{
|
48 |
|
51 |
|
Line 77... |
Line 80... |
77 |
|
80 |
|
78 |
if (!confirm('<?php echo __('Sind Sie sich sicher, dass Sie die Variation löschen möchten?', 'wpsg'); ?>')) return false;
|
81 |
if (!confirm('<?php echo __('Sind Sie sich sicher, dass Sie die Variation löschen möchten?', 'wpsg'); ?>')) return false;
|
79 |
|
82 |
|
80 |
var vari_id = jQuery('#wpsg_mod_productvariants_var_id').val();
|
83 |
var vari_id = jQuery('#wpsg_mod_productvariants_var_id').val();
|
81 |
|
84 |
|
82 |
jQuery('#wpsg_mod_productvariants_dialog button').prop('disabled', true);
|
85 |
jQuery('#wpsg_mod_productvariants_dialog_modal button').prop('disabled', true);
|
83 |
jQuery('#wpsg_mod_productvariants_dialog .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
86 |
jQuery('#wpsg_mod_productvariants_dialog_modal .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
84 |
|
87 |
|
85 |
jQuery.ajax( {
|
88 |
jQuery.ajax( {
|
86 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&noheader=1',
|
89 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&noheader=1',
|
87 |
data: {
|
90 |
data: {
|
88 |
'subaction': 'admin_variation_del',
|
91 |
'subaction': 'admin_variation_del',
|
89 |
'variation_id': variation_id,
|
92 |
'variation_id': variation_id,
|
90 |
'variant_id': vari_id
|
93 |
'variant_id': vari_id
|
91 |
},
|
94 |
},
|
92 |
success: function(data) {
|
95 |
success: function(data) {
|
93 |
|
96 |
|
94 |
jQuery('#wpsg_mod_productvariants_dialog .modal-body').html(data);
|
97 |
jQuery('#wpsg_mod_productvariants_dialog_modal .modal-body').html(data);
|
95 |
jQuery('#wpsg_mod_productvariants_dialog button').prop('disabled', false);
|
98 |
jQuery('#wpsg_mod_productvariants_dialog_modal button').prop('disabled', false);
|
96 |
|
99 |
|
97 |
}
|
100 |
}
|
98 |
} );
|
101 |
} );
|
99 |
|
102 |
|
100 |
return false;
|
103 |
return false;
|
Line 106... |
Line 109... |
106 |
|
109 |
|
107 |
var product_id = jQuery('#wpsg_mod_productvariants_product_id').val();
|
110 |
var product_id = jQuery('#wpsg_mod_productvariants_product_id').val();
|
108 |
|
111 |
|
109 |
jQuery('#wpsg_mod_productvariants_dialog_modal button').prop('disabled', true);
|
112 |
jQuery('#wpsg_mod_productvariants_dialog_modal button').prop('disabled', true);
|
110 |
jQuery('#wpsg_mod_productvariants_dialog_modal .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
113 |
jQuery('#wpsg_mod_productvariants_dialog_modal .modal-body').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
- |
|
114 |
jQuery('.wpsg_mod_productvariants_variants_close').show();
|
- |
|
115 |
|
111 |
jQuery('#wpsg_mod_productvariants_dialog_modal').modal( { } ).modal('show');
|
116 |
jQuery('#wpsg_mod_productvariants_dialog_modal').modal( { } ).modal('show');
|
112 |
|
117 |
|
113 |
jQuery.ajax( {
|
118 |
jQuery.ajax( {
|
114 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&noheader=1',
|
119 |
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&noheader=1',
|
115 |
data: {
|
120 |
data: {
|