Fixed the link to the method with onclick event.
This commit is contained in:
parent
ecbabec976
commit
75c7d3a126
@ -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>
|
||||
|
@ -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 {}
|
||||
|
||||
|
Reference in New Issue
Block a user