| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
0d21f4037b | 修复【缺陷】 修改ISSUE的【指派给】,页面显示不正确。 | 10 years ago |
|
|
f5cab10df0 | 修复 【缺陷】 liuyizhou分支:issue编辑记录二级回复不可用 | 10 years ago |
|
|
4f34cd2cfb | 修复 【缺陷】 项目里程碑:点击“新建版本”按钮后,要自动定位到输入版本信息的输入框处 | 10 years ago |
|
|
3689466632 | 修复 “项目讨论区帖子内容为空时无提示” BUG | 10 years ago |
|
|
a83d2149a3 | 修复 “ISSUE中,回复 ‘引用’内容显示空白” 的BUG | 10 years ago |
|
|
243f86219d | 修复 图片放大预览插件中,右下角关闭按钮显示”关闭“、”close“不一致 的BUG (强行修改了colorbox源码) | 10 years ago |
|
|
4002d23f12 | 修复 issue编辑状态下,实际未修改内容的的情况下点击“确定”按钮,弹出空白提示框 的BUG | 10 years ago |
|
|
b57fbd079f | 修复 “‘查看差别’页面中,HTML标签未清除”的BUG | 10 years ago |
|
|
ea6047c114 | 更新代码 | 10 years ago |
|
|
9a7b32c935 | 修复 提示“贴吧名称已经存在”,实际又新建成功了 bug app/views/forums/index.html.erb | 10 years ago |
|
|
0ed26310e3 | 修复创建贴吧时,提示“贴吧名称已经存在”,实际又新建成功了 的问题 app/views/forums/index.html.erb | 10 years ago |
| @@ -292,14 +292,20 @@ class IssuesController < ApplicationController | |||||
| def update_user_issue_detail(issue, params) | def update_user_issue_detail(issue, params) | ||||
| case params[:type] | case params[:type] | ||||
| when "status" | |||||
| issue.update_attribute(:status_id, params[:status_id]) | |||||
| when "assigned" | |||||
| issue.update_attribute(:assigned_to_id, params[:assigned_to_id]) | |||||
| when "ratio" | |||||
| issue.update_attribute(:done_ratio, params[:done_ratio]) | |||||
| when "prior" | |||||
| issue.update_attribute(:priority_id, params[:priority_id]) | |||||
| when "status" | |||||
| if params[:status_id] != "0" | |||||
| issue.update_attribute(:status_id, params[:status_id]) | |||||
| end | |||||
| when "assigned" | |||||
| if params[:assigned_to_id] != "0" | |||||
| issue.update_attribute(:assigned_to_id, params[:assigned_to_id]) | |||||
| end | |||||
| when "ratio" | |||||
| issue.update_attribute(:done_ratio, params[:done_ratio]) | |||||
| when "prior" | |||||
| if params[:priority_id] != "0" | |||||
| issue.update_attribute(:priority_id, params[:priority_id]) | |||||
| end | |||||
| end | end | ||||
| end | end | ||||
| @@ -473,7 +479,22 @@ class IssuesController < ApplicationController | |||||
| def reply | def reply | ||||
| @issue = Issue.find(params[:id]) | @issue = Issue.find(params[:id]) | ||||
| @jour = Journal.find(params[:journal_id]) | @jour = Journal.find(params[:journal_id]) | ||||
| @tempContent = "<blockquote>#{ll(Setting.default_language, :text_user_wrote, @jour.user.realname.blank? ? @jour.user.login: @jour.user.realname)} <br/>#{@jour.notes.html_safe}</blockquote>".html_safe | |||||
| journal_details = @jour.details | |||||
| @notes = "" | |||||
| @note_temp = "" | |||||
| #判断journal是否为引用 | |||||
| if @jour.notes != "" | |||||
| @notes = @jour.notes | |||||
| else | |||||
| if @jour.details.any? | |||||
| details_to_strings(@jour.details,true).each do |str| | |||||
| @note_temp += str | |||||
| end | |||||
| @notes = @note_temp.gsub("</i> <strong>","</i><br /><strong>").gsub("</i><strong>","</i><br /><strong>").to_s | |||||
| end | |||||
| end | |||||
| @tempContent = "<blockquote>#{ll(Setting.default_language, :text_user_wrote, @jour.user.realname.blank? ? @jour.user.login: @jour.user.realname)} <br/>#{@notes.html_safe}</blockquote>".html_safe | |||||
| # @tempContent = "<blockquote>#{ll(Setting.default_language, :text_user_wrote, @jour.user.realname.blank? ? @jour.user.login: @jour.user.realname)} <br/>#{@jour.notes.html_safe}</blockquote>".html_safe | |||||
| respond_to do |format| | respond_to do |format| | ||||
| format.js | format.js | ||||
| end | end | ||||
| @@ -20,6 +20,7 @@ | |||||
| module IssuesHelper | module IssuesHelper | ||||
| include ApplicationHelper | include ApplicationHelper | ||||
| include TagsHelper | include TagsHelper | ||||
| include ERB::Util | |||||
| def issue_list(issues, &block) | def issue_list(issues, &block) | ||||
| ancestors = [] | ancestors = [] | ||||
| issues.each do |issue| | issues.each do |issue| | ||||
| @@ -28,6 +28,7 @@ | |||||
| } | } | ||||
| } | } | ||||
| $(function() { | $(function() { | ||||
| hideError(); | |||||
| $("#complex").click(function(){ | $("#complex").click(function(){ | ||||
| $("#reorder_popu").removeClass("sortArrowActiveU"); | $("#reorder_popu").removeClass("sortArrowActiveU"); | ||||
| $("#reorder_popu").removeClass("sortArrowActiveD"); | $("#reorder_popu").removeClass("sortArrowActiveD"); | ||||
| @@ -71,10 +72,11 @@ | |||||
| e.preventDefault(); | e.preventDefault(); | ||||
| } | } | ||||
| }) | }) | ||||
| }); | }); | ||||
| function check_and_submit(doc){ | function check_and_submit(doc){ | ||||
| $("#error").html('').hide(); | |||||
| check_forum_name(); | |||||
| $("#error").html("").hide(); | |||||
| // check_forum_name(); | |||||
| if( $("textarea[name='forum[name]']").val().trim() == "" && $("textarea[name='forum[description]']").val().trim() != "" ){ | if( $("textarea[name='forum[name]']").val().trim() == "" && $("textarea[name='forum[description]']").val().trim() != "" ){ | ||||
| $("#error").html("名称不能为空").show(); | $("#error").html("名称不能为空").show(); | ||||
| return; | return; | ||||
| @@ -91,6 +93,7 @@ | |||||
| } | } | ||||
| var check_pass = true; | var check_pass = true; | ||||
| function check_forum_name(){ | function check_forum_name(){ | ||||
| $("#error").html("").hide(); | |||||
| check_pass = true; | check_pass = true; | ||||
| name = $("textarea[name='forum[name]']").val().trim(); | name = $("textarea[name='forum[name]']").val().trim(); | ||||
| if( name != ""){ | if( name != ""){ | ||||
| @@ -98,10 +101,10 @@ | |||||
| '<%= check_forum_name_forums_path %>', | '<%= check_forum_name_forums_path %>', | ||||
| {"forum_name":encodeURIComponent(name)}, | {"forum_name":encodeURIComponent(name)}, | ||||
| function(data){ | function(data){ | ||||
| if( data == 'true'){ | if( data == 'true'){ | ||||
| $("#error").html("贴吧名称已经存在").show(); | $("#error").html("贴吧名称已经存在").show(); | ||||
| check_pass = false; | check_pass = false; | ||||
| return false; | |||||
| } | } | ||||
| } | } | ||||
| ); | ); | ||||
| @@ -32,5 +32,7 @@ issue_desc_editor = KindEditor.create('#issue_description', | |||||
| // "uploadJson":"/kindeditor/upload", | // "uploadJson":"/kindeditor/upload", | ||||
| // "fileManagerJson":"/kindeditor/filemanager"}); | // "fileManagerJson":"/kindeditor/filemanager"}); | ||||
| <%else%> | <%else%> | ||||
| alert('<%= @issue.errors.full_messages[0].to_s%>') | |||||
| <% if @issue.errors.full_messages.length != 0 %> | |||||
| alert('<%= @issue.errors.full_messages[0].to_s%>') | |||||
| <%end%> | |||||
| <%end %> | <%end %> | ||||
| @@ -2,7 +2,8 @@ | |||||
| <p>由<%= @journal.user %> 更新于 <%= format_time @journal.created_on %></p> | <p>由<%= @journal.user %> 更新于 <%= format_time @journal.created_on %></p> | ||||
| <div class="text-diff" style="word-break:break-all; word-wrap:break-word;"> | <div class="text-diff" style="word-break:break-all; word-wrap:break-word;"> | ||||
| <%= @diff.to_html.gsub("<","<").gsub(">",">").gsub(""","\"").gsub("&gt;", ">").gsub("&lt;", "<").gsub("&quot;", "\"").html_safe %> | |||||
| <% @new = @diff.to_html.gsub("&","&").gsub("<","<").gsub(">",">").gsub(""","\"").html_safe %> | |||||
| <%= @new.gsub("&","&").gsub("<","<").gsub(">",">").gsub(""","\"").gsub("/>"," ").html_safe %> | |||||
| </div> | </div> | ||||
| <p><%= link_to l(:button_back), issue_path(@issue), :onclick => 'history.back(); return false;' %></p> | <p><%= link_to l(:button_back), issue_path(@issue), :onclick => 'history.back(); return false;' %></p> | ||||
| @@ -3,7 +3,9 @@ | |||||
| { | { | ||||
| $("#pro_st_edit_ban").toggle(); | $("#pro_st_edit_ban").toggle(); | ||||
| } | } | ||||
| $(function(){ | |||||
| window.location.hash = "#pro_st_edit_ban"; | |||||
| }); | |||||
| </script> | </script> | ||||
| <% if @project.shared_versions.any? %> | <% if @project.shared_versions.any? %> | ||||
| <table class="pro_table"> | <table class="pro_table"> | ||||
| @@ -605,11 +605,13 @@ function regexTopicDescription() | |||||
| { | { | ||||
| $("#message_content_span").text("描述不能为空"); | $("#message_content_span").text("描述不能为空"); | ||||
| $("#message_content_span").css('color','#ff0000'); | $("#message_content_span").css('color','#ff0000'); | ||||
| $("#message_content_span").focus(); | |||||
| return false; | return false; | ||||
| } | } | ||||
| else if(name.length >=6000){ | else if(name.length >=6000){ | ||||
| $("#message_content_span").text("描述最多3000个汉字(或6000个英文字符)"); | $("#message_content_span").text("描述最多3000个汉字(或6000个英文字符)"); | ||||
| $("#message_content_span").css('color','#ff0000'); | $("#message_content_span").css('color','#ff0000'); | ||||
| $("#message_content_span").focus(); | |||||
| return false; | return false; | ||||
| } | } | ||||
| else | else | ||||
| @@ -618,14 +620,15 @@ function regexTopicDescription() | |||||
| $("#message_content_span").css('color','#008000'); | $("#message_content_span").css('color','#008000'); | ||||
| return true; | return true; | ||||
| } | } | ||||
| return false; | |||||
| } | } | ||||
| function submit_topic_project() | function submit_topic_project() | ||||
| { | { | ||||
| // if(regexTopicSubject() && regexTopicDescription()) | |||||
| // { | |||||
| if(regexTopicSubject() && regexTopicDescription()) | |||||
| { | |||||
| message_content_editor.sync(); | message_content_editor.sync(); | ||||
| $("#message-form-project").submit(); | $("#message-form-project").submit(); | ||||
| // } | |||||
| } | |||||
| } | } | ||||
| function reset_topic(){ | function reset_topic(){ | ||||