grab tablesorter lib with composer
This commit is contained in:
parent
5f4ba46463
commit
57fb4e0a34
4 changed files with 10 additions and 13 deletions
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"type" : "project",
|
"type" : "project",
|
||||||
"license" : "GPL-2.0",
|
"license" : "GPL-2.0",
|
||||||
|
"minimum-stability" : "dev",
|
||||||
|
|
||||||
"repositories" : [
|
"repositories" : [
|
||||||
{
|
{
|
||||||
|
@ -24,13 +25,15 @@
|
||||||
"ifixit/php-akismet" : "1.*",
|
"ifixit/php-akismet" : "1.*",
|
||||||
|
|
||||||
"bower-asset/jquery" : "1.12.3",
|
"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-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.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/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": {
|
"scripts": {
|
||||||
|
|
|
@ -5,12 +5,7 @@ class ExtManagerTheme extends Themelet {
|
||||||
$h_en = $editable ? "<th>Enabled</th>" : "";
|
$h_en = $editable ? "<th>Enabled</th>" : "";
|
||||||
$html = "
|
$html = "
|
||||||
".make_form(make_link("ext_manager/set"))."
|
".make_form(make_link("ext_manager/set"))."
|
||||||
<script type='text/javascript'>
|
<table id='extensions' class='zebra sortable'>
|
||||||
$(document).ready(function() {
|
|
||||||
$(\"#extensions\").tablesorter();
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
<table id='extensions' class='zebra'>
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>$h_en<th>Name</th><th>Description</th></tr>
|
<tr>$h_en<th>Name</th><th>Description</th></tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
2
lib/jquery.tablesorter-2.0.5.min.js
vendored
2
lib/jquery.tablesorter-2.0.5.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -5,7 +5,8 @@ $(document).ready(function() {
|
||||||
jQuery.timeago.settings.cutoff = 365 * 24 * 60 * 60 * 1000; // Display original dates older than 1 year
|
jQuery.timeago.settings.cutoff = 365 * 24 * 60 * 60 * 1000; // Display original dates older than 1 year
|
||||||
$("time").timeago();
|
$("time").timeago();
|
||||||
|
|
||||||
$("TABLE.sortable").tablesorter();
|
/** Setup tablesorter **/
|
||||||
|
$("table.sortable").tablesorter();
|
||||||
|
|
||||||
$(".shm-clink").each(function(idx, elm) {
|
$(".shm-clink").each(function(idx, elm) {
|
||||||
var target_id = $(elm).data("clink-sel");
|
var target_id = $(elm).data("clink-sel");
|
||||||
|
|
Reference in a new issue