1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-22 03:16:34 +00:00

[history]modified 'back' btn

This commit is contained in:
llj
2012-09-21 15:32:52 +08:00
parent 3e1fd75e9f
commit 0d09cf744e
2 changed files with 4 additions and 4 deletions

View File

@@ -835,8 +835,8 @@ ul.with-bg li {
margin-top:8px; margin-top:8px;
} }
/* repo-history */ /* repo-history */
#history-back-to-repo { #back {
margin-top:5px; margin-top:3px;
} }
.commit-list { .commit-list {
margin:0 0 20px; margin:0 0 20px;

View File

@@ -5,7 +5,7 @@
{% block main_panel %} {% block main_panel %}
<div class="w100 ovhd"> <div class="w100 ovhd">
<h2 class="fleft">{{repo.props.name}} 镜像查看</h2> <h2 class="fleft">{{repo.props.name}} 镜像查看</h2>
<button data="{{ SITE_ROOT }}repo/history/{{ repo.props.id }}/" class="fright" id="history-back-to-repo">返回修改历史</button> <button data="{{ SITE_ROOT }}repo/history/{{ repo.props.id }}/" class="fright" id="back">返回修改历史</button>
</div> </div>
<div class="commit-list-outer-container"> <div class="commit-list-outer-container">
@@ -78,7 +78,7 @@
{% block extra_script %} {% block extra_script %}
<script type="text/javascript"> <script type="text/javascript">
{% include 'snippets/list_commit_detail.html' %} {% include 'snippets/list_commit_detail.html' %}
$('#history-back-to-repo').click(function() { $('#back').click(function() {
location.href = $(this).attr('data'); location.href = $(this).attr('data');
}); });
addConfirmTo($(".repo-revert"), '确定要还原该目录?'); addConfirmTo($(".repo-revert"), '确定要还原该目录?');