|
|
@ -1,8 +1,8 @@
|
|
|
|
//验证搜索时输入字
|
|
|
|
//验证搜索时输入字
|
|
|
|
function regexName() {
|
|
|
|
function regexName(content) {
|
|
|
|
var name = $.trim($("#name").val());
|
|
|
|
var name = $.trim($("#name").val());
|
|
|
|
if (name.length == 0) {
|
|
|
|
if (name.length == 0) {
|
|
|
|
$("#project_name_span").text("<%= l(:label_search_conditions_not_null) %>");
|
|
|
|
$("#project_name_span").text(content);
|
|
|
|
$("#project_name_span").css('color', '#ff0000');
|
|
|
|
$("#project_name_span").css('color', '#ff0000');
|
|
|
|
$("#project_name_span").focus();
|
|
|
|
$("#project_name_span").focus();
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
@ -13,6 +13,12 @@ function regexName() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function submitSerch(content)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if(regexName(content)){$("#project_search_form").submit();}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 项目描述超过展开
|
|
|
|
// 项目描述超过展开
|
|
|
|
//$(function(){
|
|
|
|
//$(function(){
|
|
|
|
// $(".subNav").click(function(){
|
|
|
|
// $(".subNav").click(function(){
|
|
|
@ -29,8 +35,21 @@ function expand_tools_expand()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 描述显示更多信息
|
|
|
|
// 描述显示更多信息
|
|
|
|
function show_more_msg()
|
|
|
|
function show_more_msg(){
|
|
|
|
{$("#course_description").toggleClass("course_description_none");}
|
|
|
|
$("#course_description").toggleClass("course_description_none");
|
|
|
|
|
|
|
|
var information = $("#expend_more_information");
|
|
|
|
|
|
|
|
var val = information.attr("value");
|
|
|
|
|
|
|
|
if (val=="展开更多信息" )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$("#expend_more_information").text("收起描述信息");
|
|
|
|
|
|
|
|
information.attr("value","收起描述信息");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$("#expend_more_information").text("展开更多信息");
|
|
|
|
|
|
|
|
information.attr("value","展开更多信息");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////
|
|
|
|
///////////////////////////////////////////////////////////////
|
|
|
|
//////////////////////////////////////////////////////////////项目讨论区
|
|
|
|
//////////////////////////////////////////////////////////////项目讨论区
|
|
|
@ -202,3 +221,11 @@ $(document).ready(function(){
|
|
|
|
// $(".jstEditor").css("margin-left ","80px");
|
|
|
|
// $(".jstEditor").css("margin-left ","80px");
|
|
|
|
//issue_project_id
|
|
|
|
//issue_project_id
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function showAndScrollTo(id, focus) {
|
|
|
|
|
|
|
|
$('#'+id).show();
|
|
|
|
|
|
|
|
if (focus !== null) {
|
|
|
|
|
|
|
|
$('#'+focus).focus();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$('html, body').animate({scrollTop: $('#'+id).offset().top}, 400);
|
|
|
|
|
|
|
|
}
|