summaryrefslogtreecommitdiff
path: root/views/admin/laender.phtml
diff options
context:
space:
mode:
authorhartmut <noreply@maennchen1.de>2017-06-02 12:39:50 +0000
committerhartmut <noreply@maennchen1.de>2017-06-02 12:39:50 +0000
commit4d3303d73fbb0cd8e7a05fa47650b791835b5dcb (patch)
tree608afc8f25e38d4918d4015dde5568829ee53ac4 /views/admin/laender.phtml
parent81dc3487b6efef1bcb775bd0f1e2d50529449536 (diff)
Korrektur Länder und Versandzonen
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6306 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/admin/laender.phtml')
-rw-r--r--views/admin/laender.phtml22
1 files changed, 22 insertions, 0 deletions
diff --git a/views/admin/laender.phtml b/views/admin/laender.phtml
index 72aa5fc..6c91a39 100644
--- a/views/admin/laender.phtml
+++ b/views/admin/laender.phtml
@@ -63,6 +63,28 @@
function wpsg_country_check_all() { jQuery('td.col_check input').each(function() { jQuery(this).prop('checked', !jQuery(this).prop('checked')); } ); }
+ function wpsg_country_remove(land_id)
+ {
+
+ if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false;
+
+ jQuery.ajax( {
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=remove&noheader=1',
+ data: {
+ land_id: land_id
+ },
+ success: function(data) {
+
+ if (data === "1") jQuery('#wpsg_laenderrow_' + land_id).remove();
+ else alert(data);
+
+ }
+ } );
+
+ return false;
+
+ }
+
function wpsg_country_add()
{