修复 issue编辑状态下,实际未修改内容的的情况下点击“确定”按钮,弹出空白提示框 的BUG

liuyizhou
louant 9 years ago
parent b57fbd079f
commit 4002d23f12

@ -32,5 +32,7 @@ issue_desc_editor = KindEditor.create('#issue_description',
// "uploadJson":"/kindeditor/upload",
// "fileManagerJson":"/kindeditor/filemanager"});
<%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 %>

Loading…
Cancel
Save