Subversion Repositories wpShopGermany4

Rev

Rev 7787 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7787 Rev 8295
Line 9... Line 9...
9
?>
9
?>
10
 
10
 
11
<script>
11
<script>
12
 
12
 
13
    function wpsg_mod_orderupload_upload(product_index, product_id) {
13
    function wpsg_mod_orderupload_upload(product_index, product_id) {
14
 
14
 
15
        var files = document.getElementById('wpsg_mod_orderupload_' + product_index + '_file').files;
15
        var files = document.getElementById('wpsg_mod_orderupload_' + product_index + '_file').files;
16
        var formData = new FormData();
16
        var formData = new FormData();
17
 
17
 
18
        for (var i = 0; i < files.length; i++) {
18
        for (var i = 0; i < files.length; i++) {
19
 
19
 
Line 60... Line 60...
60
        
60
        
61
        jQuery.ajax( {
61
        jQuery.ajax( {
62
            url: wpsg_ajax.ajaxurl,
62
            url: wpsg_ajax.ajaxurl,
63
            data: {
63
            data: {
64
                action: 'wpsg_mod_orderupload_delete',
64
                action: 'wpsg_mod_orderupload_delete',
65
                order_id: <?php echo $_SESSION['wpsg']['order_id'] ?>,
65
                order_id: '<?php echo $_SESSION['wpsg']['order_id'] ?>',
66
                product_index: product_index,
66
                product_index: product_index,
67
                product_id: product_id,
67
                product_id: product_id,
68
                file: file
68
                file: file
69
            }, 
69
            }, 
70
            success: function(data) {
70
            success: function(data) {