summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--styles/style.css6
-rw-r--r--templates/index.phtml11
2 files changed, 11 insertions, 6 deletions
diff --git a/styles/style.css b/styles/style.css
index c7c4611..9f33464 100644
--- a/styles/style.css
+++ b/styles/style.css
@@ -104,11 +104,10 @@ table.tablesorter tbody td {
padding: 4px;
vertical-align: top;
}
-
-table.tablesorter tbody tr.odd td {
+table.tablesorter tbody tr.odd {
background-color:#F1F5F9;
}
-table.tablesorter tbody tr.even td {
+table.tablesorter tbody tr.even {
background-color:#FFFFFF;
}
@@ -151,6 +150,7 @@ img.list_reload {
font-weight: bold;
}
a.load_invocations {
+ display: none;
background-color: #999;
border: 1px solid #333;
padding: 2px;
diff --git a/templates/index.phtml b/templates/index.phtml
index 3a48e44..a2cee67 100644
--- a/templates/index.phtml
+++ b/templates/index.phtml
@@ -73,8 +73,13 @@
{'op':'invocation_list', 'file':currentDataFile, 'functionNr':functionNr, 'costFormat':$("#costFormat").val(), 'start':invocationsLoaded[functionNr]},
function(data){
calledByUser = calledBySystem = false;
+
for(i=0;i<data.length;i++){
if(data[i].callerFile){
+ if(i==0 && invocationsLoaded[functionNr]==0){
+ $("#invocation_area_"+functionNr).append(invocationTable(functionNr));
+ }
+
$("#invocation_table_"+functionNr+" tbody").append(invocationTableRow(invocationsLoaded[functionNr]+i, data[i]));
calledByUser = true;
} else {
@@ -96,6 +101,7 @@
if(calledBySystem){
$("#invocation_area_"+functionNr).append('Called by script host');
}
+
invocationsLoaded[functionNr] += data.length;
remaining = maxInvocations[functionNr]-invocationsLoaded[functionNr];
@@ -135,10 +141,9 @@
function toggleInvocations(functionNr){
if(invocationsLoaded[functionNr]==0){
- $("#invocation_area_"+functionNr).append(invocationTable(functionNr));
loadMoreInvocations(functionNr);
- }
-
+ }
+
$("#invocation_area_"+functionNr).toggle();
current = $("#fold_marker_"+functionNr).get(0).src;
if(current.substr(current.lastIndexOf('/')+1) == 'right.gif')