From 4d3303d73fbb0cd8e7a05fa47650b791835b5dcb Mon Sep 17 00:00:00 2001 From: hartmut Date: Fri, 2 Jun 2017 12:39:50 +0000 Subject: Korrektur Länder und Versandzonen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6306 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/admin/laender.phtml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'views/admin/laender.phtml') 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('')) return false; + + jQuery.ajax( { + url: '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() { -- cgit v1.2.3