commit
82ebd1e4c9
@ -0,0 +1,5 @@
|
|||||||
|
<p ondblclick=show_edit_file_description('<%= file.id %>')>
|
||||||
|
资源描述:<% if file.description.blank? %><span style="color:#C5C5BE; cursor:pointer;" title="双击可编辑">点击添加描述</span><% else %><span style="cursor:pointer;" title="双击可编辑"><%= file.description %></span><% end %>
|
||||||
|
<%#= file.description.blank? ? "该资源暂无描述" : file.description %>
|
||||||
|
<%= link_to image_tag("../images/signature_edit.png",width:"12px", height: "12px"), "javascript:void(0);", :onclick => "show_edit_file_description("+file.id.to_s+");"%>
|
||||||
|
</p>
|
@ -0,0 +1,3 @@
|
|||||||
|
$("#file_description_show_<%= @attachment.id %>").html("<%= escape_javascript render(:partial => "files/file_description", :locals => {:file => @attachment}) %>");
|
||||||
|
$("#file_description_show_<%= @attachment.id %>").show();
|
||||||
|
$("#file_description_edit_<%= @attachment.id %>").hide();
|
@ -1,6 +1,7 @@
|
|||||||
<%if @save_flag%>
|
<%if @save_flag%>
|
||||||
$('#new_forum_div').slideToggle();$('#create_btn').parent().slideToggle();
|
//$('#new_forum_div').slideToggle();$('#create_btn').parent().slideToggle();
|
||||||
$('#reorder_time').click();
|
//$('#reorder_time').click();
|
||||||
|
window.location.href= "http://"+"<%= Setting.host_name%>"+"/forums/" + "<%= @forum.id%>"
|
||||||
<%else%>
|
<%else%>
|
||||||
$("#error").html("<%= @forum.errors.full_messages[0]%>").show();
|
$("#error").html("<%= @forum.errors.full_messages[0]%>").show();
|
||||||
<%end %>
|
<%end %>
|
Loading…
Reference in new issue