summaryrefslogtreecommitdiff
path: root/views/mods/mod_export/settings_edit.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-11-04 14:34:21 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-11-04 14:34:21 +0000
commite4326891a13a1bf445635ffbe30fae4e7462b458 (patch)
tree7a9fef1e99eb7785467967894b55e9da2a86e3c5 /views/mods/mod_export/settings_edit.phtml
parentae89a04884f3870b78f6fa1ea93d14ea8d27aedf (diff)
- Arbeiten V4
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5896 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_export/settings_edit.phtml')
-rw-r--r--views/mods/mod_export/settings_edit.phtml42
1 files changed, 32 insertions, 10 deletions
diff --git a/views/mods/mod_export/settings_edit.phtml b/views/mods/mod_export/settings_edit.phtml
index 263dd47..9a80ba6 100644
--- a/views/mods/mod_export/settings_edit.phtml
+++ b/views/mods/mod_export/settings_edit.phtml
@@ -26,32 +26,54 @@
} // function wpsg_mod_export_profilSwitch()
- function wpsg_mod_export_removeField(profil_id, field_key)
+ function wpsg_mod_export_addField(profil_id)
+ {
+
+ jQuery('#wpsg_mod_export_fields').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+
+ jQuery.ajax( {
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=wpsg_mod_export_addField&noheader=1',
+ data: {
+ profil_id: profil_id
+ },
+ success: function(data) {
+
+ jQuery('#wpsg_mod_export_fields').html(data);
+
+ }
+ } );
+
+ return false;
+
+ }
+
+ function wpsg_mod_export_removeField(field_id)
{
- if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false;
+ if (!confirm('<?php echo __('Sind Sie sich sicher, dass das Feld gelöscht werden soll?', 'wpsg'); ?>')) return false;
+
+ jQuery('tr.wpsg_mod_export_fieldrow_' + field_id).parent().remove();
jQuery.ajax( {
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=wpsg_mod_export_removeField&noheader=1',
data: {
- profil: profil_id,
- field_key: field_key
+ field_id: field_id
},
success: function(data) {
- if (data == '1')
- {
- jQuery('tr.wpsg_mod_export_fieldrow_' + field_key).remove();
- }
- else
+
+ if (data != '1')
{
+
alert(data);
+
}
+
}
} );
return false;
- } // function wpsg_mod_export_removeField(profil_id, field_key)
+ } // function wpsg_mod_export_removeField(field_id)
function wpsg_mod_export_removeProfil(profil_id)
{