|
|
|
@ -51,7 +51,7 @@
|
|
|
|
|
style="word-break: break-all;word-wrap: break-word;">
|
|
|
|
|
<%= label_tag l(:field_subject) %>: <%=h @memo.subject %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="memo-content">
|
|
|
|
|
<div class="memo-content" id="memo-content_div">
|
|
|
|
|
<%= textAreailizable(@memo,:content) %>
|
|
|
|
|
<p>
|
|
|
|
|
<% if @memo.attachments.any?%>
|
|
|
|
@ -149,8 +149,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
jQuery(document).ready(function($) {
|
|
|
|
|
jQuery(document).ready(function($) {
|
|
|
|
|
transpotUrl('.lz');
|
|
|
|
|
transpotUrl('.replies');
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
window.onready = function() {
|
|
|
|
|
var maxwidth = $("#memo-content_div").width();
|
|
|
|
|
$("#memo-content_div").children().each(function(){
|
|
|
|
|
if($(this).width()>maxwidth)
|
|
|
|
|
{
|
|
|
|
|
$(this).width(maxwidth);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
</script>
|