Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
{% endif %}

{% if stack %}
<a class="text-small sf-toggle" data-toggle-selector="#{{ id }}" data-toggle-alt-content="Hide stack trace">Show strack trace</a>
<button class="btn-link text-small sf-toggle" data-toggle-selector="#{{ id }}" data-toggle-alt-content="Hide stack trace">Show strack trace</button>
{% endif %}

{% for index, call in stack if index > 1 %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
{% endif %}

{% if message.parameters|length > 0 %}
<a class="newline text-small sf-toggle" data-toggle-selector="#parameters-{{ loop.index }}" data-toggle-alt-content="Hide parameters">Show parameters</a>
<button class="btn-link newline text-small sf-toggle" data-toggle-selector="#parameters-{{ loop.index }}" data-toggle-alt-content="Hide parameters">Show parameters</button>

<div id="parameters-{{ loop.index }}" class="hidden">
{% for parameters in message.parameters %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@
}

Sfjs.addEventListener(toggles[i], 'click', function(e) {
e.preventDefault();

var toggle = e.target || e.srcElement;
var element = document.querySelector(toggle.getAttribute('data-toggle-selector'));

Expand All @@ -406,8 +408,6 @@
var originalContent = toggle.getAttribute('data-toggle-original-content');
var altContent = toggle.getAttribute('data-toggle-alt-content');
toggle.innerHTML = currentContent !== altContent ? altContent : originalContent;

e.preventDefault();
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,18 @@ button {
height: 16px;
vertical-align: middle;
}

.btn-link {
border-color: transparent;
color: #218BC3;
text-decoration: none;
background-color: transparent;
outline: none;
border: 0;
padding: 0;
}
.btn-link:hover {
text-decoration: underline;
}
{# Tables
------------------------------------------------------------------------- #}
table, tr, th, td {
Expand Down