mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 02:09:23 +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()
|
||||
{
|
||||
if (!defined("TABLE_RENDERED")) {
|
||||
show_table_render();
|
||||
}
|
||||
require_once AmpConfig::get('prefix') . '/templates/footer.inc.php';
|
||||
if (isset($_REQUEST['profiling'])) {
|
||||
Dba::show_profile();
|
||||
|
|
|
@ -19,10 +19,15 @@
|
|||
//
|
||||
|
||||
$(document).ready(function() {
|
||||
InitTableData();
|
||||
});
|
||||
|
||||
function InitTableData()
|
||||
{
|
||||
if ($('.tabledata').mediaTable()) {
|
||||
ResponsiveElements.init();
|
||||
setTimeout(function() {
|
||||
$('.tabledata').mediaTable('analyze');
|
||||
}, 1);
|
||||
}
|
||||
});
|
||||
}
|
|
@ -69,5 +69,4 @@ switch ($_REQUEST['action']) {
|
|||
break;
|
||||
} // end switch on action
|
||||
|
||||
show_table_render(false, true);
|
||||
UI::show_footer();
|
||||
|
|
|
@ -155,4 +155,3 @@ if ($directplay_limit > 0) {
|
|||
?>
|
||||
</div><br />
|
||||
<?php } ?>
|
||||
<?php show_table_render(true, true); ?>
|
||||
|
|
|
@ -104,5 +104,4 @@ $thcount = 8;
|
|||
</tr>
|
||||
<tfoot>
|
||||
</table>
|
||||
<?php show_table_render(); ?>
|
||||
<?php if ($browse->get_show_header()) require AmpConfig::get('prefix') . '/templates/list_header.inc.php'; ?>
|
||||
|
|
|
@ -106,5 +106,4 @@ $thcount = 8;
|
|||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<?php show_table_render(); ?>
|
||||
<?php if ($browse->get_show_header()) require AmpConfig::get('prefix') . '/templates/list_header.inc.php'; ?>
|
||||
|
|
|
@ -85,5 +85,4 @@ $thcount = 6;
|
|||
</tr>
|
||||
<tfoot>
|
||||
</table>
|
||||
<?php show_table_render(); ?>
|
||||
<?php if ($browse->get_show_header()) require AmpConfig::get('prefix') . '/templates/list_header.inc.php'; ?>
|
||||
|
|
|
@ -91,5 +91,4 @@ $thcount = 8;
|
|||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<?php show_table_render(); ?>
|
||||
<?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>
|
||||
</tfoot>
|
||||
</table>
|
||||
<?php show_table_render(); ?>
|
||||
<?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