diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb
index 96e3b84be..ceb675dcb 100644
--- a/app/views/repositories/show.html.erb
+++ b/app/views/repositories/show.html.erb
@@ -30,7 +30,7 @@
-
diff --git a/public/javascripts/project.js b/public/javascripts/project.js
index f85f744e3..6dbb0ff6b 100644
--- a/public/javascripts/project.js
+++ b/public/javascripts/project.js
@@ -71,13 +71,35 @@ function showhelpAndScrollTo(id) {
{
cookiesave("repositories_visiable", true,'','','');
}
+ var information = $("#showgithelp");
+ var val = information.attr("value");
+ if(val=="show_help")
+ {
+ $("#showgithelp").text("收起Git操作指南");
+ information.attr("value", "hide_help");
+ }
+ else
+ {
+ $("#showgithelp").text("展开Git操作指南");
+ information.attr("value", "show_help");
+ }
}
+
+
$(function(){
+ var information = $("#showgithelp");
+ var val = information.attr("value");
if(cookieget("repositories_visiable") == "true")
{
$('#repos_git_more').hide();
}
+ else
+ {
+ $('#repos_git_more').show();
+ $("#showgithelp").text("收起Git操作指南");
+ information.attr("value", "hide_help");
+ }
});
diff --git a/public/stylesheets/project.css b/public/stylesheets/project.css
index 019ffa57a..a5554fd6b 100644
--- a/public/stylesheets/project.css
+++ b/public/stylesheets/project.css
@@ -180,6 +180,7 @@ a:hover.link_file{ background:url(../images/pic_file.png) 0 -25px no-repeat; col
/* 版本库展示Git操作文档 */
.repos_more{height:23px; width:100%; border:1px solid #CCC; background:#F6F6F6; text-align:center; font-size:12px; padding-top:2px;}
.lh23{line-height: 23px;}
+.repos_git_more{display: none;}
/* 弹框 新样式还没设计出来,暂时用的课程那边的样式 */
.alert .close{width:26px;height:26px;overflow:hidden;position:absolute;top:-10px;right:-502px;background:url(images/close.png) no-repeat;cursor:pointer;}