Commit 4cd1518d by tasawernawaz Committed by Tasawer Nawaz

feedback addressed

parent 549ef1cc
$(document).on('click', '.btn-show-changes', function (e) {
if ($(this).text() === 'Show changes') {
if ($(this).hasClass('show')){
$('.field-container').each(function () {
showDiff($(this).find('span.object'), $(this).find('span.history-object'), $(this).find('span.show-diff'));
});
$(this).text('Hide changes');
$(this).removeClass('show');
} else {
$('.object').show();
$('.show-diff').hide();
$(this).text('Show changes');
$(this).addClass('show');
}
});
......
......@@ -912,7 +912,7 @@ select {
}
.hr-line {
float: left;
@include float(left);
width: 882px;
}
......
......@@ -2,6 +2,7 @@
{% load i18n %}
{% load staticfiles %}
{% load compress %}
{% block title %}
{% trans "Revision History" %}
{% endblock title %}
......@@ -17,7 +18,7 @@
{{ date }} by {{ name }}
{% endblocktrans %}
{% endwith %}
<button class="btn-show-changes">Show changes</button>
<button class="btn-show-changes show">{% trans "Show changes" %}</button>
</p>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment