mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-18 22:12:14 +00:00
Fixed incorrect url on bootstrap fonts.
Fixed missing static files in repo
This commit is contained in:
20
static/debug_toolbar/js/toolbar.profiling.js
Normal file
20
static/debug_toolbar/js/toolbar.profiling.js
Normal file
@@ -0,0 +1,20 @@
|
||||
(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.jQuery);
|
||||
Reference in New Issue
Block a user