Sha256: 402a624b906e76ee043915877d0ae87f825f3f4eabae0736e567c2537dbe3b1a
Contents?: true
Size: 961 Bytes
Versions: 1
Compression:
Stored size: 961 Bytes
Contents
if (typeof(StackTracy) == "undefined") { StackTracy = (function() { var sortation = []; var toggle = function(event) { $(event.target).closest("div").next("div.group").toggle(); }; $(function() { $(".toggler").live("click", toggle); $("[data-toggle]").click(function(event) { event.preventDefault(); $(this).tab("show"); }); }); return { version: "0.1.0", sort: function(column) { sortation[column] = sortation[column] == "asc" ? "desc" : "asc"; $("#cumulatives>.body>div").tsort("span:eq(" + column + ")[abbr]", { sortFunction: function(a, b) { var order = (sortation[column] == "asc") ? 1 : -1; var av = column == 3 ? a.s : parseFloat(a.s); var bv = column == 3 ? b.s : parseFloat(b.s); if (av === bv) { return 0; } else { return (av > bv) ? order : -1 * order; } } }); } }; })(); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stack_tracy-0.1.0 | ui/assets/stack_tracy.js |