Permalink
Browse files

reuse existing tablesorter call

  • Loading branch information...
franzwilding committed Nov 23, 2018
1 parent 453f1e2 commit e7df0dc260b6918c409903236a2c43afe2c7e7d3
Showing with 41 additions and 49 deletions.
  1. +1 −0 includes/functions-html.php
  2. +0 −2 js/common.js
  3. +0 −47 js/jquery.tablesorter.min.js
  4. +40 −0 js/tablesorte.js
@@ -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>
@@ -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'
Oops, something went wrong.

0 comments on commit e7df0dc

Please sign in to comment.