grab tablesorter lib with composer

This commit is contained in:
Daku 2016-05-12 21:03:39 +01:00
parent 5f4ba46463
commit 57fb4e0a34
4 changed files with 10 additions and 13 deletions

View file

@ -1,6 +1,7 @@
{
"type" : "project",
"license" : "GPL-2.0",
"minimum-stability" : "dev",
"repositories" : [
{
@ -24,13 +25,15 @@
"ifixit/php-akismet" : "1.*",
"bower-asset/jquery" : "1.12.3",
"bower-asset/jquery-timeago" : "1.5.2"
"bower-asset/jquery-timeago" : "1.5.2",
"bower-asset/tablesorter" : "2.0.5"
},
"vendor-copy": {
"vendor/bower-asset/jquery/dist/jquery.min.js" : "lib/vendor/js/jquery-1.12.3.min.js",
"vendor/bower-asset/jquery/dist/jquery.min.map" : "lib/vendor/js/jquery-1.12.3.min.map",
"vendor/bower-asset/jquery-timeago/jquery.timeago.js" : "lib/vendor/js/jquery.timeago.js"
"vendor/bower-asset/jquery-timeago/jquery.timeago.js" : "lib/vendor/js/jquery.timeago.js",
"vendor/bower-asset/tablesorter/jquery.tablesorter.min.js" : "lib/vendor/js/jquery.tablesorter.min.js"
},
"scripts": {

View file

@ -5,12 +5,7 @@ class ExtManagerTheme extends Themelet {
$h_en = $editable ? "<th>Enabled</th>" : "";
$html = "
".make_form(make_link("ext_manager/set"))."
<script type='text/javascript'>
$(document).ready(function() {
$(\"#extensions\").tablesorter();
});
</script>
<table id='extensions' class='zebra'>
<table id='extensions' class='zebra sortable'>
<thead>
<tr>$h_en<th>Name</th><th>Description</th></tr>
</thead>

File diff suppressed because one or more lines are too long

View file

@ -5,7 +5,8 @@ $(document).ready(function() {
jQuery.timeago.settings.cutoff = 365 * 24 * 60 * 60 * 1000; // Display original dates older than 1 year
$("time").timeago();
$("TABLE.sortable").tablesorter();
/** Setup tablesorter **/
$("table.sortable").tablesorter();
$(".shm-clink").each(function(idx, elm) {
var target_id = $(elm).data("clink-sel");