diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2017-08-28 12:31:04 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2017-08-28 12:31:04 +0000 |
| commit | 1c88b6f69cd87a436073be9cdf05eee6c3757f42 (patch) | |
| tree | 3ec2c66741c1d0627a79f695e0bf582861e96d5c /views/mods/mod_export/settings_edit.phtml | |
| parent | fe6bd9ed881e1022fca6183496fee126a8f296d4 (diff) | |
- Exportprofile auf Produkte ausgeweitet
-
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6425 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_export/settings_edit.phtml')
| -rw-r--r-- | views/mods/mod_export/settings_edit.phtml | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/views/mods/mod_export/settings_edit.phtml b/views/mods/mod_export/settings_edit.phtml index 1c8fa18..39c0c16 100644 --- a/views/mods/mod_export/settings_edit.phtml +++ b/views/mods/mod_export/settings_edit.phtml @@ -96,15 +96,20 @@ } // function wpsg_mod_export_removeProfil(profil_id)
- function wpsg_mod_export_addProfil()
+ function wpsg_mod_export_addProfil(type)
{
jQuery('#wpsg_profil_list').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_addProfil&noheader=1',
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_export&do=wpsg_mod_export_addProfil&noheader=1',
+ data: {
+ type: type
+ },
success: function(data) {
+
jQuery("#wpsg_profil_list").html(data);
+
}
} );
@@ -126,7 +131,7 @@ },
success: function(data) {
- if (data != '1')
+ if (data != '1' && data != '0')
{
alert(data);
@@ -140,7 +145,9 @@ </script>
-<a title="<?php echo __('Neuens Exportprofil anlegen', 'wpsg'); ?>" href="#" class="" onclick="return wpsg_mod_export_addProfil();"><span class="wpsg-glyphicon glyphicon glyphicon-plus"></span><?php echo __('Neues Exportprofil anlegen', 'wpsg'); ?></a>
+<a title="<?php echo __('Neuens Exportprofil anlegen', 'wpsg'); ?>" href="#" class="" onclick="return wpsg_mod_export_addProfil(<?php echo wpsg_mod_export::TYPE_ORDER; ?>);"><span class="wpsg-glyphicon glyphicon glyphicon-plus"></span><?php echo __('Neues Exportprofil für Bestellungen anlegen', 'wpsg'); ?></a><br />
+<a title="<?php echo __('Neuens Exportprofil anlegen', 'wpsg'); ?>" href="#" class="" onclick="return wpsg_mod_export_addProfil(<?php echo wpsg_mod_export::TYPE_PRODUCT; ?>);"><span class="wpsg-glyphicon glyphicon glyphicon-plus"></span><?php echo __('Neues Exportprofil für Produkte anlegen', 'wpsg'); ?></a>
+
<br /><br />
<div id="wpsg_profil_list"><?php echo $this->callMod('wpsg_mod_export', 'profilList'); ?></div>
\ No newline at end of file |
