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 ++++++++++++++++++++++ views/admin/laender_list.phtml | 8 ++++---- views/admin/versandzonen.phtml | 11 ++++++----- views/admin/versandzonen_list.phtml | 4 ++++ 4 files changed, 36 insertions(+), 9 deletions(-) (limited to 'views/admin') 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() { diff --git a/views/admin/laender_list.phtml b/views/admin/laender_list.phtml index e887dbd..dd0e8fb 100644 --- a/views/admin/laender_list.phtml +++ b/views/admin/laender_list.phtml @@ -1,6 +1,6 @@ @@ -25,7 +25,7 @@ view['data'] as $l) { ?> - + @@ -57,7 +57,7 @@ - + @@ -66,7 +66,7 @@ - + diff --git a/views/admin/versandzonen.phtml b/views/admin/versandzonen.phtml index fb73e8e..f823780 100644 --- a/views/admin/versandzonen.phtml +++ b/views/admin/versandzonen.phtml @@ -21,9 +21,10 @@ -
view['adminController']->vz_listAction(); ?> +
+
@@ -33,12 +34,12 @@