diff options
| author | Jean-Luc Beer <noreply@maennchen1.de> | 2024-11-28 09:29:40 +0000 |
|---|---|---|
| committer | Jean-Luc Beer <noreply@maennchen1.de> | 2024-11-28 09:29:40 +0000 |
| commit | 1f679722a44f5c85fab25126736fb756d0a9979b (patch) | |
| tree | 4dfeb6001a493299318161c6f086834d112c8f8e | |
| parent | 6c363858cfaef9cda7fd95580646a068f7ce6d52 (diff) | |
- Validierung Produktvarianten-IDs -> Spamschutz (Keine unendlichen Ordner in uploads erzeugen)
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8459 0d5edaf7-2b12-4e95-93f4-047927463d4b
| -rw-r--r-- | views/mods/mod_downloadprodukte/produkt_addedit_sidebar.phtml | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/views/mods/mod_downloadprodukte/produkt_addedit_sidebar.phtml b/views/mods/mod_downloadprodukte/produkt_addedit_sidebar.phtml index 947be7d..60ec0ef 100644 --- a/views/mods/mod_downloadprodukte/produkt_addedit_sidebar.phtml +++ b/views/mods/mod_downloadprodukte/produkt_addedit_sidebar.phtml @@ -9,39 +9,10 @@ <script type="text/javascript">
/* <![CDATA[ */
- jQuery(document).ready(function() {
-
- <?php if ($this->get_option('wpsg_classicupload') != '1') { ?>
- new AjaxUpload(
- "upload_produktfile_button", {
- name: "wpsg_mod_downloadprodukte_file",
- action: "<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadprodukte&edit_id=<?php echo $this->view['data']['id'] ?>&noheader=1&cmd=upload_file",
- onSubmit: function(file, extension) {
-
- jQuery('#produktfiles_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-
- },
- onComplete: function(file, response) {
- //alert(response);
- if (response == '1')
- {
- //jQuery("#produktfiles_target").html('lalal');
- jQuery("#produktfiles_target").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadprodukte&cmd=produktfiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
- }
- else
- {
- alert(response);
- }
- }
- }
- );
- <?php } ?>
-
- } );
-
/**
* Wird beim löschen einer Datei aufgerufen
*/
+
function wpsg_remove_file(strFile)
{
@@ -63,7 +34,7 @@ return false;
}
- +
/* ]]> */
</script>
|
