mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 10:19:25 +02:00
Include tabledata.js only once, before footer
This commit is contained in:
parent
d38345268e
commit
cd53d38c51
13 changed files with 19 additions and 18 deletions
|
@ -284,6 +284,9 @@ END;
|
||||||
*/
|
*/
|
||||||
public static function show_footer()
|
public static function show_footer()
|
||||||
{
|
{
|
||||||
|
if (!defined("TABLE_RENDERED")) {
|
||||||
|
show_table_render();
|
||||||
|
}
|
||||||
require_once AmpConfig::get('prefix') . '/templates/footer.inc.php';
|
require_once AmpConfig::get('prefix') . '/templates/footer.inc.php';
|
||||||
if (isset($_REQUEST['profiling'])) {
|
if (isset($_REQUEST['profiling'])) {
|
||||||
Dba::show_profile();
|
Dba::show_profile();
|
||||||
|
|
|
@ -19,10 +19,15 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
InitTableData();
|
||||||
|
});
|
||||||
|
|
||||||
|
function InitTableData()
|
||||||
|
{
|
||||||
if ($('.tabledata').mediaTable()) {
|
if ($('.tabledata').mediaTable()) {
|
||||||
ResponsiveElements.init();
|
ResponsiveElements.init();
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('.tabledata').mediaTable('analyze');
|
$('.tabledata').mediaTable('analyze');
|
||||||
}, 1);
|
}, 1);
|
||||||
}
|
}
|
||||||
});
|
}
|
|
@ -69,5 +69,4 @@ switch ($_REQUEST['action']) {
|
||||||
break;
|
break;
|
||||||
} // end switch on action
|
} // end switch on action
|
||||||
|
|
||||||
show_table_render(false, true);
|
|
||||||
UI::show_footer();
|
UI::show_footer();
|
||||||
|
|
|
@ -155,4 +155,3 @@ if ($directplay_limit > 0) {
|
||||||
?>
|
?>
|
||||||
</div><br />
|
</div><br />
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php show_table_render(true, true); ?>
|
|
||||||
|
|
|
@ -104,5 +104,4 @@ $thcount = 8;
|
||||||
</tr>
|
</tr>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
</table>
|
</table>
|
||||||
<?php show_table_render(); ?>
|
|
||||||
<?php if ($browse->get_show_header()) require AmpConfig::get('prefix') . '/templates/list_header.inc.php'; ?>
|
<?php if ($browse->get_show_header()) require AmpConfig::get('prefix') . '/templates/list_header.inc.php'; ?>
|
||||||
|
|
|
@ -106,5 +106,4 @@ $thcount = 8;
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
<?php show_table_render(); ?>
|
|
||||||
<?php if ($browse->get_show_header()) require AmpConfig::get('prefix') . '/templates/list_header.inc.php'; ?>
|
<?php if ($browse->get_show_header()) require AmpConfig::get('prefix') . '/templates/list_header.inc.php'; ?>
|
||||||
|
|
|
@ -85,5 +85,4 @@ $thcount = 6;
|
||||||
</tr>
|
</tr>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
</table>
|
</table>
|
||||||
<?php show_table_render(); ?>
|
|
||||||
<?php if ($browse->get_show_header()) require AmpConfig::get('prefix') . '/templates/list_header.inc.php'; ?>
|
<?php if ($browse->get_show_header()) require AmpConfig::get('prefix') . '/templates/list_header.inc.php'; ?>
|
||||||
|
|
|
@ -91,5 +91,4 @@ $thcount = 8;
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
<?php show_table_render(); ?>
|
|
||||||
<?php if ($browse->get_show_header()) require AmpConfig::get('prefix') . '/templates/list_header.inc.php'; ?>
|
<?php if ($browse->get_show_header()) require AmpConfig::get('prefix') . '/templates/list_header.inc.php'; ?>
|
||||||
|
|
|
@ -102,5 +102,4 @@ if (isset($video_type) && $video_type != 'video') {
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
<?php show_table_render(); ?>
|
|
||||||
<?php if ($browse->get_show_header()) require AmpConfig::get('prefix') . '/templates/list_header.inc.php'; ?>
|
<?php if ($browse->get_show_header()) require AmpConfig::get('prefix') . '/templates/list_header.inc.php'; ?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue