summaryrefslogtreecommitdiff
path: root/views/mods
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-09-09 20:05:19 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-09-09 20:05:19 +0000
commiteaf11126b7c5a763dc70701ddf205ffe30676ef6 (patch)
tree4b0233776429bec7b40ef893f06fc072f0b0e70d /views/mods
parentc5ef7d3ea5ccf16f33ce419c455b0a1b1172e5cd (diff)
- Fertigstellung neue Länderverwaltung
- Deinstallationsoptionen an Layout angepasst - Bestellvariablen löschen - Backend Kleinigkeiten git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5748 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods')
-rw-r--r--views/mods/mod_ordervars/ov_list.phtml25
1 files changed, 17 insertions, 8 deletions
diff --git a/views/mods/mod_ordervars/ov_list.phtml b/views/mods/mod_ordervars/ov_list.phtml
index 1cd4655..6224066 100644
--- a/views/mods/mod_ordervars/ov_list.phtml
+++ b/views/mods/mod_ordervars/ov_list.phtml
@@ -25,7 +25,9 @@
<td class="wpsg_pflicht"><input type="checkbox" <?php echo (($ov['pflicht'] == '1')?'checked="checked"':''); ?> id="wpsg_ov_pflicht_<?php echo $ov['id']; ?>" /></td>
<td class="wpsg_delcol">
- <a class="wpsg_icon wpsg_icon_remove" href="#" title="<?php echo __('Bestellvariable löschen', 'wpsg'); ?>" onclick="return wpsg_removeOV(<?php echo $ov['id']; ?>);"></a>
+ <a class="" href="#" title="<?php echo __('Bestellvariable löschen', 'wpsg'); ?>" onclick="return wpsg_removeOV(<?php echo $ov['id']; ?>);">
+ <span class="glyphicon glyphicon-trash"></span>
+ </a>
<script type="text/javascript">
@@ -78,18 +80,25 @@
function wpsg_removeOV(id)
{
- jQuery.ajax({
+
+ if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false;
+
+ jQuery('#wpsg_ov_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+
+ jQuery.ajax( {
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordervars&noheader=1&do=del',
data: {
ov_id: id
},
- success: function(data){
- if (data == 1)
- {
- location.reload();
- }
+ success: function(data) {
+
+ jQuery('#wpsg_ov_list').html(data);
+
}
- });
+ } );
+
+ return false;
+
}
</script>