parent
84e8a40174
commit
c8c57b3f76
|
@ -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?%>
|
||||
|
@ -153,4 +153,13 @@ 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>
|
Loading…
Reference in New Issue