Merge remote-tracking branch 'origin/szzh' into szzh
This commit is contained in:
commit
2047f17191
|
@ -35,43 +35,6 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td class="info_font" style="width: 240px; color: #15bccf"><%= l(:label_projects_community)%></td>
|
<td class="info_font" style="width: 240px; color: #15bccf"><%= l(:label_projects_community)%></td>
|
||||||
<td style="width: 430px; color: #15bccf"><strong><%= l(:label_user_location) %> : </strong></td>
|
<td style="width: 430px; color: #15bccf"><strong><%= l(:label_user_location) %> : </strong></td>
|
||||||
<td rowspan="2" width="250px">
|
|
||||||
<div class="top-content-search">
|
|
||||||
<script type="text/javascript">
|
|
||||||
function regexName()
|
|
||||||
{
|
|
||||||
var name = $.trim($("#name").val());
|
|
||||||
if(name.length == 0)
|
|
||||||
{
|
|
||||||
$("#project_name_span").text("<%= l(:label_search_conditions_not_null) %>");
|
|
||||||
$("#project_name_span").css('color','#ff0000');
|
|
||||||
$("#project_name_span").focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$("#project_name_span").text("");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function submitSerch()
|
|
||||||
{
|
|
||||||
if(regexName()){$("#project_search_form").submit();}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<%= form_tag(projects_search_path, :method => :get, :id => "project_search_form") do %>
|
|
||||||
<%= text_field_tag 'name', params[:name], :size => 20, :onkeyup => "regexName();", :style => "float:left" %>
|
|
||||||
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
|
||||||
<%#= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
|
||||||
<a href="#" onclick="submitSerch();" class="ButtonColor m3p10" style="float:left;padding-top: 3px; margin: 0px;padding-bottom:0px;" >
|
|
||||||
<%= l(:label_search)%>
|
|
||||||
</a>
|
|
||||||
<br />
|
|
||||||
<span id="project_name_span" style="float: left"></span>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding-left: 8px"><a><%= link_to request.host()+"/forums", forums_path %></a></td>
|
<td style="padding-left: 8px"><a><%= link_to request.host()+"/forums", forums_path %></a></td>
|
||||||
|
|
Loading…
Reference in New Issue