parent
84e8a40174
commit
c8c57b3f76
|
@ -51,7 +51,7 @@
|
||||||
style="word-break: break-all;word-wrap: break-word;">
|
style="word-break: break-all;word-wrap: break-word;">
|
||||||
<%= label_tag l(:field_subject) %>: <%=h @memo.subject %>
|
<%= label_tag l(:field_subject) %>: <%=h @memo.subject %>
|
||||||
</div>
|
</div>
|
||||||
<div class="memo-content">
|
<div class="memo-content" id="memo-content_div">
|
||||||
<%= textAreailizable(@memo,:content) %>
|
<%= textAreailizable(@memo,:content) %>
|
||||||
<p>
|
<p>
|
||||||
<% if @memo.attachments.any?%>
|
<% if @memo.attachments.any?%>
|
||||||
|
@ -153,4 +153,13 @@ jQuery(document).ready(function($) {
|
||||||
transpotUrl('.lz');
|
transpotUrl('.lz');
|
||||||
transpotUrl('.replies');
|
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>
|
</script>
|
Loading…
Reference in New Issue