diff options
Diffstat (limited to 'views/admin/laender.phtml')
| -rw-r--r-- | views/admin/laender.phtml | 22 |
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()
{
|
