Private
Public Access
1
0

Added minimock and created new class in tests.py - work in progress

This commit is contained in:
sanderroosendaal
2016-11-06 16:35:41 +01:00
parent a32fdcf636
commit 464550deb9
1259 changed files with 32372 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
(function ($) {
function getSubcalls(row) {
var id = row.attr('id');
return $('.djDebugProfileRow[id^="'+id+'_"]');
}
function getDirectSubcalls(row) {
var subcalls = getSubcalls(row);
var depth = parseInt(row.attr('depth'), 10) + 1;
return subcalls.filter('[depth='+depth+']');
}
$('.djDebugProfileRow .djDebugProfileToggle').on('click', function(){
var row = $(this).closest('.djDebugProfileRow');
var subcalls = getSubcalls(row);
if (subcalls.css('display') == 'none') {
getDirectSubcalls(row).show();
} else {
subcalls.hide();
}
});
djdt.applyStyle('padding-left');
})(djdt.jQuery);