flash闪存处理

This commit is contained in:
huang 2017-03-13 14:37:39 +08:00
parent 0298c45b20
commit 47e87b115a
2 changed files with 3 additions and 2 deletions

View File

@ -375,7 +375,7 @@ update
end
else
respond_to do |format|
format.js{flash[:notice] = "版本库创建失败"}
format.js{flash[:notice] = l(:notice_failed_create)}
end
end
end

View File

@ -1,4 +1,5 @@
<div class="pro_new_prompt ml15 mr15 mb10"><p>温馨提示:每个项目只能创建一个版本库</p></div>
<%= error_messages_for 'project' %>
<% if @repository.nil? %>
<div class="sy_new_tchbox clear">
<%= labelled_form_for :repository, @repository, :url => shixun_repositories_path(@shixun), :html => {:method => "post", :autocomplete => 'off'} do |f| %>
@ -58,7 +59,7 @@
function project_repository_commit()
{
// if(regex_repoistory_name())
if(regex_repoistory_name())
{
$("#new_repository").submit();
}