1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 19:41:55 +02:00

Fix catalog export (fix #899)

This commit is contained in:
Afterster 2015-07-10 22:44:22 +02:00
parent 9f51e5e388
commit f946a1ce04
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ $(function() {
$("body").delegate("form", "submit", function(e) {
// We do not support ajax post with files or login form, neither specific target
var $file = $(this).find("input[type=file]");
if ($(this).attr('name') !== 'login' && (!$file || !$file.val() || $file.val() === "") && ($(this).attr('target') === undefined || $(this).attr('target') === '')) {
if ($(this).attr('name') !== 'login' && $(this).attr('name') !== 'export' && (!$file || !$file.val() || $file.val() === "") && ($(this).attr('target') === undefined || $(this).attr('target') === '')) {
var postData = $(this).serializeArray();
var formURL = $(this).attr("action");

View file

@ -26,7 +26,7 @@ $name = 'catalog_' . $_REQUEST['export_catalog'];
${$name} = ' selected="selected"';
UI::show_box_top(T_('Export Catalog'), 'box box_export'); ?>
<form name="duplicates" action="<?php echo AmpConfig::get('web_path'); ?>/admin/export.php?action=export" method="post" enctype="multipart/form-data" >
<form name="export" action="<?php echo AmpConfig::get('web_path'); ?>/admin/export.php?action=export" method="post" enctype="multipart/form-data" >
<table class="tableform" cellspacing="0" cellpadding="3">
<tr>
<td valign="top"><strong><?php echo T_('Catalog'); ?>:</strong></td>