Sha256: 5c309cbe9f3344c48683dfcf5410c1ad322a952f728dac78b639ace2bfe6b254
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 KB
Contents
if (typeof(StackTracy) == "undefined") { StackTracy = (function() { var sortation = {cumulatives: [], realtime_cumulatives: []}; var toggle = function(event) { var group = $(event.target).closest("div").next("div.group"); var comments = group.comments(); if (comments.length) { group.html(comments.join("\n")); } else { group.toggle(); } }; $(function() { $(".toggler").live("click", toggle); $("[data-toggle]").click(function(event) { event.preventDefault(); $(this).tab("show"); }); }); return { version: "0.1.7", sort: function(section, column) { sortation[section][column] = sortation[section][column] == "asc" ? "desc" : "asc"; $("#" + section + ">.body>div").tsort("span:eq(" + column + ")[abbr]", { sortFunction: function(a, b) { var order = (sortation[section][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.7 | ui/assets/stack_tracy.js |