ui/assets/stack_tracy.js in stack_tracy-0.1.3 vs ui/assets/stack_tracy.js in stack_tracy-0.1.4
- old
+ new
@@ -2,11 +2,17 @@
StackTracy = (function() {
var sortation = [];
var toggle = function(event) {
- $(event.target).closest("div").next("div.group").toggle();
+ 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) {
@@ -14,10 +20,10 @@
$(this).tab("show");
});
});
return {
- version: "0.1.3",
+ version: "0.1.4",
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;
\ No newline at end of file