diff options
Diffstat (limited to 'ishtar/templates')
| -rw-r--r-- | ishtar/templates/sheet.html | 2 | ||||
| -rw-r--r-- | ishtar/templates/sheet_file.html | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/ishtar/templates/sheet.html b/ishtar/templates/sheet.html index e2d1cc6c0..5608a684f 100644 --- a/ishtar/templates/sheet.html +++ b/ishtar/templates/sheet.html @@ -17,7 +17,7 @@ <script type="text/javascript">var last_window='{{window_id}}';</script> <div class="head"> <a href='#' onclick='$("#{{window_id}}").hide("slow")'>{% trans "Close" %}</a> - -<a href='#' onclick='$("#window > div").hide("slow");$("#window").html("")'> +<a href='#' onclick='closeAllWindows();'> {% trans "Close all windows" %} </a></div>{% endblock %} <div class="body"> diff --git a/ishtar/templates/sheet_file.html b/ishtar/templates/sheet_file.html index bf74490d5..1ba043239 100644 --- a/ishtar/templates/sheet_file.html +++ b/ishtar/templates/sheet_file.html @@ -4,11 +4,12 @@ {% if previous or next %} <div class='tool'> {%if previous%} -<a href="#" onclick='load_window("{% url show-historized-file item.pk previous %}");$("#{{window_id}}").hide();return false;'>{%trans "Previous version"%} ({{previous}})</a> +<a href="#" onclick='load_window("{% url show-historized-file item.pk previous|date:"c"%}");$("#{{window_id}}").hide();return false;'>{%trans "Previous version"%} ({{previous}})</a> {% endif %} {% if previous and next %} - {% endif %} {%if next%} -<a href="#" onclick='load_window("{% url show-historized-file item.pk next %}");$("#{{window_id}}").hide();return false;'>{%trans "Next version"%} ({{next}})</a> +<a href="#" onclick='if(confirm("{%trans "Are you sure to rollback to this version?"%}")){load_url("{% url revert-file item.pk item.history_date|date:"c"%}");closeAllWindows();load_window("{% url show-file item.pk None %}");}'>Rollback</a> - +<a href="#" onclick='load_window("{% url show-historized-file item.pk next|date:"c" %}");$("#{{window_id}}").hide();return false;'>{%trans "Next version"%} ({{next}})</a> {% endif %} </div> {% endif %} |
