mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 02:39:47 +02:00
Fix catalog export (fix #899)
This commit is contained in:
parent
9f51e5e388
commit
f946a1ce04
2 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ $(function() {
|
||||||
$("body").delegate("form", "submit", function(e) {
|
$("body").delegate("form", "submit", function(e) {
|
||||||
// We do not support ajax post with files or login form, neither specific target
|
// We do not support ajax post with files or login form, neither specific target
|
||||||
var $file = $(this).find("input[type=file]");
|
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 postData = $(this).serializeArray();
|
||||||
var formURL = $(this).attr("action");
|
var formURL = $(this).attr("action");
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ $name = 'catalog_' . $_REQUEST['export_catalog'];
|
||||||
${$name} = ' selected="selected"';
|
${$name} = ' selected="selected"';
|
||||||
|
|
||||||
UI::show_box_top(T_('Export Catalog'), 'box box_export'); ?>
|
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">
|
<table class="tableform" cellspacing="0" cellpadding="3">
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top"><strong><?php echo T_('Catalog'); ?>:</strong></td>
|
<td valign="top"><strong><?php echo T_('Catalog'); ?>:</strong></td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue