修复wiki页面表格超出页面的BUG
This commit is contained in:
parent
c8c57b3f76
commit
1f9c6b66ca
|
@ -1,4 +1,4 @@
|
||||||
<div class="wiki wiki-page">
|
<div class="wiki wiki-page" id="wiki_content_div">
|
||||||
<%= textAreailizable content, :text, :attachments => content.page.attachments,
|
<%= textAreailizable content, :text, :attachments => content.page.attachments,
|
||||||
:edit_section_links => (@sections_editable && {:controller => 'wiki', :action => 'edit', :project_id => @page.project, :id => @page.title}) %>
|
:edit_section_links => (@sections_editable && {:controller => 'wiki', :action => 'edit', :project_id => @page.project, :id => @page.title}) %>
|
||||||
<%#= content.text.html_safe %>
|
<%#= content.text.html_safe %>
|
||||||
|
|
|
@ -68,3 +68,15 @@
|
||||||
<%= render :partial => 'sidebar' %>
|
<%= render :partial => 'sidebar' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% html_title @page.pretty_title %>
|
<% html_title @page.pretty_title %>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
window.onready = function() {
|
||||||
|
var maxwidth = $("#wiki_content_div").width();
|
||||||
|
$("#wiki_content_div").children().each(function(){
|
||||||
|
if($(this).width()>maxwidth)
|
||||||
|
{
|
||||||
|
$(this).width(maxwidth);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue