From 323568cb1a4d1acad9cbf381d0172ce114dabdaf Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Mon, 9 Sep 2019 08:35:33 +0000 Subject: - Adminbereich genounced git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7560 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/admin/laender.phtml | 47 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 37 insertions(+), 10 deletions(-) (limited to 'views/admin/laender.phtml') diff --git a/views/admin/laender.phtml b/views/admin/laender.phtml index 6c91a39..89e2d0c 100644 --- a/views/admin/laender.phtml +++ b/views/admin/laender.phtml @@ -37,6 +37,8 @@
+ +
@@ -63,13 +65,16 @@ 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) - { + 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', + url: '', data: { land_id: land_id }, @@ -92,7 +97,11 @@ jQuery('#Modal_wpsg_country_edit').modal('show'); jQuery.ajax( { - url: 'wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=add&noheader=1', + url: '', success: function(data) { jQuery('#Modal_wpsg_country_edit .modal-body').html(data); } } ); @@ -100,15 +109,18 @@ } // function wpsg_country_add() - function wpsg_country_import() - { + function wpsg_country_import() { if (!confirm('')) return false; jQuery('#wpsg_country_list').html(''); jQuery.ajax( { - url: 'wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=import&noheader=1', + url: '', success: function(data) { jQuery('#wpsg_country_list').html(data); @@ -128,7 +140,11 @@ jQuery('#wpsg_country_list').html(''); jQuery.ajax( { - url: 'wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=eu_import&noheader=1', + url: '', success: function(data) { jQuery('#wpsg_country_list').html(data); @@ -146,7 +162,11 @@ jQuery('#wpsg_country_list').html(''); jQuery.ajax( { - url: 'wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=save&noheader=1', + url: '', data: { form_data: jQuery('#wpsg_land_edit_form_edit').serialize() }, @@ -166,7 +186,14 @@ jQuery('#Modal_wpsg_country_edit').modal('show'); jQuery.ajax( { - url: 'wp-admin/admin.php?page=wpsg-Admin&subaction=laender&do=edit&noheader=1&land_id=' + land_id, + url: '', + data: { + land_id: land_id + }, success: function(data) { jQuery('#Modal_wpsg_country_edit .modal-body').html(data); } } ); -- cgit v1.2.3