|
|
|
@ -90,7 +90,7 @@ function regexContent() {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 项目编辑和提交
|
|
|
|
|
// 项目讨论区编辑和提交
|
|
|
|
|
function submitProjectsBoard() {
|
|
|
|
|
if (regexSubject() && regexContent()) {
|
|
|
|
|
$("#message-form").submit();
|
|
|
|
@ -161,7 +161,7 @@ function course_setting(id) {
|
|
|
|
|
$('#tbc_0' + (3 - id)).removeClass().addClass("undis");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//项目类型
|
|
|
|
|
//项目类型(朋友圈、开发组、科研组)
|
|
|
|
|
function show_window() {
|
|
|
|
|
$('#light').css('display', 'block');
|
|
|
|
|
$('#fade').css('display', 'block');
|
|
|
|
@ -189,6 +189,32 @@ function project_setting(n) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//配置-验证项目名称
|
|
|
|
|
function regex_project_name()
|
|
|
|
|
{
|
|
|
|
|
var name = $.trim($("#project_name").val());
|
|
|
|
|
if(name.length == 0)
|
|
|
|
|
{
|
|
|
|
|
$("#project_name_notice").show();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
$("#project_name_notice").hide();
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//配置-信息提交
|
|
|
|
|
function submit_edit_project(id)
|
|
|
|
|
{
|
|
|
|
|
if(regex_project_name())
|
|
|
|
|
{
|
|
|
|
|
$("#edit_project_"+id).submit();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//配置--成员---申请列表--拒绝
|
|
|
|
|
function refusal_applied_member() {
|
|
|
|
|
$('#new_membership').append("<input name = 'refusal_button' style='display: none;'>");
|
|
|
|
|