diff --git a/app/views/files/_project_file.html.erb b/app/views/files/_project_file.html.erb
index 90b6068f3..0c38a6377 100644
--- a/app/views/files/_project_file.html.erb
+++ b/app/views/files/_project_file.html.erb
@@ -39,6 +39,10 @@
$('#insite').attr("class", "re_schbtn b_lblue");
}
+ function os_search(){
+ window.open("http://ossean.trustie.net/open_source_projects/search?utf8=✓&name="+$("#name").val());
+ }
+
function project_files_upload()
{
var htmlvalue = '<%= escape_javascript(render :partial => 'files/upload_project_files',:locals => {:project => @project,:project_attachment_type => 1}) %>';
@@ -76,6 +80,9 @@
<%= form_tag( search_project_project_files_path(@project), method: 'get',:class => "re_search",:remote=>true) do %>
<%= text_field_tag 'name', params[:name], name: "name", :class => 're_schbox',:style=>"padding: 0px"%>
<%= submit_tag "项目内搜索", :class => "re_schbtn b_lblue",:name => "incourse",:id => "incourse", :onmouseover => "presscss('incourse')",:onmouseout =>"buttoncss()", :style =>"width:72px;" %>
+ <% if @project.try(:id) == 2765 %>
+ 开源检索
+ <% end %>
<%#= submit_tag "全站搜索", :class => "re_schbtn b_lblue",:name => "insite",:id => "insite",:onmouseover => "presscss('insite')",:onmouseout =>"buttoncss()" %>
<% if User.current.member_of?(@project) %>