diff --git a/admin/writepanels/writepanel-product-type-downloadable.php b/admin/writepanels/writepanel-product-type-downloadable.php deleted file mode 100644 index 4add24fe05a..00000000000 --- a/admin/writepanels/writepanel-product-type-downloadable.php +++ /dev/null @@ -1,118 +0,0 @@ - -
- ID, 'file_path', true); - $field = array( 'id' => 'file_path', 'label' => __('File path', 'woothemes') ); - echo '

- - -

'; - - // Download Limit - $download_limit = get_post_meta($post->ID, 'download_limit', true); - $field = array( 'id' => 'download_limit', 'label' => __('Download Limit', 'woothemes') ); - echo '

- - ' . __('Leave blank for unlimited re-downloads.', 'woothemes') . '

'; - - ?> -
- - jQuery(function(){ - - window.send_to_editor_default = window.send_to_editor; - - jQuery('.upload_file_button').live('click', function(){ - - var post_id = ID; ?>; - - formfield = jQuery('#file_path').attr('name'); - - window.send_to_editor = window.send_to_download_url; - - tb_show('', 'media-upload.php?post_id=' + post_id + '&type=file&from=wc01&TB_iframe=true'); - return false; - }); - - window.send_to_download_url = function(html) { - - file_url = jQuery(html).attr('href'); - if (file_url) { - jQuery('#file_path').val(file_url); - } - tb_remove(); - window.send_to_editor = window.send_to_editor_default; - - } - - }); - -
- -
- -
- -
- -
- parent product option.', 'woothemes'); - ?> -
-