1
0
Fork 0
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:
Afterster 2014-11-20 20:55:13 +01:00
parent d38345268e
commit cd53d38c51
13 changed files with 19 additions and 18 deletions

View file

@ -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();

View file

@ -19,10 +19,15 @@
//
$(document).ready(function() {
InitTableData();
});
function InitTableData()
{
if ($('.tabledata').mediaTable()) {
ResponsiveElements.init();
setTimeout(function() {
$('.tabledata').mediaTable('analyze');
}, 1);
}
});
}

View file

@ -69,5 +69,4 @@ switch ($_REQUEST['action']) {
break;
} // end switch on action
show_table_render(false, true);
UI::show_footer();

View file

@ -155,4 +155,3 @@ if ($directplay_limit > 0) {
?>
</div><br />
<?php } ?>
<?php show_table_render(true, true); ?>

View file

@ -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'; ?>

View file

@ -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'; ?>

View file

@ -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'; ?>

View file

@ -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'; ?>

View file

@ -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'; ?>