more fixes to download view
This commit is contained in:
parent
5200af8206
commit
953a6e0785
|
@ -51,17 +51,17 @@ function getDLEventHTML($eid, $eids) {
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getGeneratedHTML($generated) {
|
function getGeneratedHTML($generated, $exportFormat) {
|
||||||
$result = '';
|
$result = '';
|
||||||
|
|
||||||
if ( $generated = '' ) {
|
if ( $generated == '' ) {
|
||||||
$result .= '<h2 id="exportProgress" class="hidden warnText">'.PHP_EOL;
|
$result .= '<h2 id="exportProgress" class="hidden warnText">'.PHP_EOL;
|
||||||
$result .= '<span id="exportProgressText">' .translate('Exporting'). '</span>'.PHP_EOL;
|
$result .= '<span id="exportProgressText">' .translate('Exporting'). '</span>'.PHP_EOL;
|
||||||
$result .= '<span id="exportProgressTicker"></span>'.PHP_EOL;
|
$result .= '<span id="exportProgressTicker"></span>'.PHP_EOL;
|
||||||
$result .= '</h2>'.PHP_EOL;
|
$result .= '</h2>'.PHP_EOL;
|
||||||
} else {
|
} else {
|
||||||
$result .= '<h2 id="exportProgress" class="' .($generated ? 'infoText' : 'errorText').'">'.PHP_EOL;
|
$result .= '<h2 id="exportProgress" class="' .($generated ? 'infoText' : 'errorText').'">'.PHP_EOL;
|
||||||
$result .= '<span id="exportProgressText">' .($generated ? translate('ExportSucceeded'):translate('ExportFailed')). '</span>'.PHP_EOL;
|
$result .= '<span id="exportProgressText">' .($generated ? translate('ExportSucceeded') : translate('ExportFailed')). '</span>'.PHP_EOL;
|
||||||
$result .= '<span id="exportProgressTicker"></span>'.PHP_EOL;
|
$result .= '<span id="exportProgressTicker"></span>'.PHP_EOL;
|
||||||
$result .= '</h2>'.PHP_EOL;
|
$result .= '</h2>'.PHP_EOL;
|
||||||
}
|
}
|
||||||
|
@ -149,6 +149,6 @@ xhtmlHeaders(__FILE__, translate('Download'));
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<?php echo getGeneratedHTML($generated) ?>
|
<?php echo getGeneratedHTML($generated, $exportFormat) ?>
|
||||||
</div>
|
</div>
|
||||||
<?php xhtmlFooter() ?>
|
<?php xhtmlFooter() ?>
|
||||||
|
|
Loading…
Reference in New Issue