forked from GitHub/dbot
oops
This commit is contained in:
parent
278bc8b93c
commit
dbac28cad6
@ -1,44 +1,6 @@
|
|||||||
extends ../layout
|
extends ../layout
|
||||||
|
|
||||||
block content
|
block content
|
||||||
script(type="text/javascript", src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js")
|
|
||||||
|
|
||||||
script
|
|
||||||
$(document).ready(function(){
|
|
||||||
// Allowing forcing of string stats data to sort as numeric
|
|
||||||
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
|
||||||
"forcenum-pre": function ( a ) {
|
|
||||||
a = a.replace("\,", "");
|
|
||||||
return parseFloat( a );
|
|
||||||
},
|
|
||||||
|
|
||||||
"forcenum-asc": function ( a, b ) {
|
|
||||||
return a - b;
|
|
||||||
},
|
|
||||||
|
|
||||||
"forcenum-desc": function ( a, b ) {
|
|
||||||
return b - a;
|
|
||||||
}
|
|
||||||
} );
|
|
||||||
|
|
||||||
$('.tip').tooltip();
|
|
||||||
$('.data').dataTable({
|
|
||||||
"aoColumnDefs": [
|
|
||||||
{ "sType": "forcenum",
|
|
||||||
"asSorting": [ "desc", "asc" ],
|
|
||||||
"aTargets": [ 1, 2, 3, 4, 5 ] }
|
|
||||||
],
|
|
||||||
"bPaginate": false,
|
|
||||||
"bFilter": false,
|
|
||||||
"bLengthChange": false,
|
|
||||||
"oLanguage": {
|
|
||||||
"sInfo": "",
|
|
||||||
"sInfoEmpty": "",
|
|
||||||
"sInfoFiltered": ""
|
|
||||||
},
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
div.page-header.profile_page-header
|
div.page-header.profile_page-header
|
||||||
h1
|
h1
|
||||||
#{connection}
|
#{connection}
|
||||||
|
Loading…
Reference in New Issue
Block a user