Fixed the link to the method with onclick event.

This commit is contained in:
Juti Noppornpitak 2012-04-15 14:03:31 -04:00
parent ecbabec976
commit 75c7d3a126
2 changed files with 12 additions and 6 deletions

View File

@ -5,12 +5,8 @@
{% if collector.controller.class is defined %}
{% set link = collector.controller.file|file_link(collector.controller.line) %}
<span class="sf-toolbar-info-class sf-toolbar-info-with-next-pointer">{{ collector.controller.class|abbr_class }}</span>
<span class="sf-toolbar-info-method">
{% if link %}
<a style="color: #2f2f2f" href="{{ link }}">{{ collector.controller.method }}</a>
{% else %}
{{ collector.controller.method }}
{% endif %}
<span class="sf-toolbar-info-method" onclick="{% if link %}window.location='{{link}}';window.event.stopPropagation();return false;{% endif %}">
{{ collector.controller.method }}
</span>
{% else %}
<span class="sf-toolbar-info-class sf-toolbar-info-with-next-pointer">{{ collector.controller }}</span>

View File

@ -150,6 +150,16 @@
margin-top: 0;
}
.sf-toolbar-block .sf-toolbar-info-method {
border-bottom: 1px dashed #ccc;
cursor: help;
}
.sf-toolbar-block .sf-toolbar-info-method[onclick=""] {
border-bottom: none;
cursor: inherit;
}
.sf-toolbar-info-php {}
.sf-toolbar-info-php-ext {}