Merge branch 'szzh' of http://repository.trustie.net/xianbo/trustie2 into szzh
commit
140c836ec0
@ -1,11 +1,11 @@
|
|||||||
$('#issue_notes').val("<%= raw escape_javascript(@content) %>");
|
$('#journal_issue_note').html("<%= raw escape_javascript(@content.html_safe) %>");
|
||||||
|
$("input[name='issue_quote_new']").val("<%= raw escape_javascript(@content.html_safe) %>");
|
||||||
<%
|
<%
|
||||||
# when quoting a private journal, check the private checkbox
|
# when quoting a private journal, check the private checkbox
|
||||||
if @journal && @journal.private_notes?
|
if @journal && @journal.private_notes?
|
||||||
%>
|
%>
|
||||||
$('#issue_private_notes').attr('checked', true);
|
$('#issue_private_notes').attr('checked', true);
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
showAndScrollTo("update", "notes");
|
showAndScrollTo("update", "notes");
|
||||||
$('#notes').scrollTop = $('#notes').scrollHeight - $('#notes').clientHeight;
|
$('#notes').scrollTop = $('#notes').scrollHeight - $('#notes').clientHeight;
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
$("#add_score_reply_<%= @score.id%>").html("<%= escape_javascript(render :partial => 'add_score_reply', :locals => {:score => @score}) %>");
|
$("#add_score_reply_<%= @score.id%>").html("<%= escape_javascript(render :partial => 'add_score_reply', :locals => {:score => @score}) %>");
|
||||||
<% if @status && @status == 1%>
|
<% if @status && @status == 1%>
|
||||||
$("#replay_histroy_<%= @score.id%>").prepend("<%= escape_javascript(render :partial => 'jour_replay', :locals => {:jour => @jour}) %>");
|
$("#replay_histroy_<%= @score.id%>").prepend("<%= escape_javascript(render :partial => 'jour_replay', :locals => {:jour => @jour}) %>");
|
||||||
|
$("#add_score_reply_<%= @score.id%>").hide();
|
||||||
<% else%>
|
<% else%>
|
||||||
alert("回复内容不能为空");
|
alert("回复内容不能为空");
|
||||||
<% end%>
|
<% end%>
|
Loading…
Reference in new issue