|
|
|
@ -59,6 +59,27 @@ function show_more_msg() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function showhelpAndScrollTo(id, focus) {
|
|
|
|
|
var information = $("#showgithelp");
|
|
|
|
|
var val = information.attr("value");
|
|
|
|
|
if (val == "show_help") {
|
|
|
|
|
$("#showgithelp").text("收起Git操作指南");
|
|
|
|
|
information.attr("value", "hide_help");
|
|
|
|
|
$('#' + id).show();
|
|
|
|
|
if (focus !== null) {
|
|
|
|
|
$('#' + focus).focus();
|
|
|
|
|
}
|
|
|
|
|
$('html, body').animate({scrollTop: $('#' + id).offset().top}, 400);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
$("#showgithelp").text("显示Git操作指南");
|
|
|
|
|
information.attr("value", "show_help");
|
|
|
|
|
$('#' + id).hide();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////
|
|
|
|
|
//////////////////////////////////////////////////////////////项目讨论区
|
|
|
|
|
function regexSubject() {
|
|
|
|
@ -191,27 +212,22 @@ function project_setting(n) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//配置-验证项目名称
|
|
|
|
|
function regex_project_name()
|
|
|
|
|
{
|
|
|
|
|
function regex_project_name() {
|
|
|
|
|
var name = $.trim($("#project_name").val());
|
|
|
|
|
if(name.length == 0)
|
|
|
|
|
{
|
|
|
|
|
if (name.length == 0) {
|
|
|
|
|
$("#project_name_notice").show();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
else {
|
|
|
|
|
$("#project_name_notice").hide();
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//配置-信息提交
|
|
|
|
|
function submit_edit_project(id)
|
|
|
|
|
{
|
|
|
|
|
if(regex_project_name())
|
|
|
|
|
{
|
|
|
|
|
$("#edit_project_"+id).submit();
|
|
|
|
|
function submit_edit_project(id) {
|
|
|
|
|
if (regex_project_name()) {
|
|
|
|
|
$("#edit_project_" + id).submit();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -233,12 +249,13 @@ $(document).ready(function () {
|
|
|
|
|
//issue_project_id
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function showAndScrollTo(id, focus) {
|
|
|
|
|
$('#' + id).show();
|
|
|
|
|
if (focus !== null) {
|
|
|
|
|
function showAndScrollTo(id, focus) {
|
|
|
|
|
$('#' + id).show();
|
|
|
|
|
if (focus !== null) {
|
|
|
|
|
$('#' + focus).focus();
|
|
|
|
|
}
|
|
|
|
|
$('html, body').animate({scrollTop: $('#' + id).offset().top}, 400);
|
|
|
|
|
}
|
|
|
|
|
$('html, body').animate({scrollTop: $('#' + id).offset().top}, 400);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*缺陷完成度决定缺陷状态*/
|
|
|
|
@ -287,7 +304,4 @@ function showAndScrollTo(id, focus) {
|
|
|
|
|
$("pre").addClass("break_word");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|