diff options
Diffstat (limited to 'views/mods/mod_export/settings_edit.phtml')
| -rw-r--r-- | views/mods/mod_export/settings_edit.phtml | 42 |
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)
{
|
