Skip to content

Commit

Permalink
reuse existing tablesorter call
Browse files Browse the repository at this point in the history
  • Loading branch information
franzwilding committed Nov 23, 2018
1 parent 453f1e2 commit e7df0dc
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 49 deletions.
1 change: 1 addition & 0 deletions includes/functions-html.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ function yourls_html_head( $context = 'index', $title = '' ) {
<?php if ( $tablesorter ) { ?>
<link rel="stylesheet" href="<?php yourls_site_url(); ?>/css/tablesorter.css?v=<?php echo YOURLS_VERSION; ?>" type="text/css" media="screen" />
<script src="<?php yourls_site_url(); ?>/js/jquery-3.tablesorter.min.js?v=<?php echo YOURLS_VERSION; ?>" type="text/javascript"></script>
<script src="<?php yourls_site_url(); ?>/js/tablesorte.js?v=<?php echo YOURLS_VERSION; ?>" type="text/javascript"></script>
<?php } ?>
<?php if ( $insert ) { ?>
<script src="<?php yourls_site_url(); ?>/js/insert.js?v=<?php echo YOURLS_VERSION; ?>" type="text/javascript"></script>
Expand Down
2 changes: 0 additions & 2 deletions js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
$(document).ready(function(){
$('.hide-if-no-js').removeClass('hide-if-no-js');
$('.hide-if-js').hide();

$('table.tblSorter').tablesorter();
});

// Change an element text an revert in a smooth pulse. el is an element id like '#copybox h2'
Expand Down
Loading

0 comments on commit e7df0dc

Please sign in to comment.