diff --git a/app/views/memos/show.html.erb b/app/views/memos/show.html.erb index 4feb998cf..634903558 100644 --- a/app/views/memos/show.html.erb +++ b/app/views/memos/show.html.erb @@ -61,7 +61,7 @@ <%= link_to @memo.author.name, user_path(@memo.author), :class => "linkBlue2", :target=> "_blank"%>
<%= format_date( @memo.created_at)%>
-
+
<%= @memo.content.html_safe%>
@@ -126,7 +126,7 @@
\ No newline at end of file diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 709bd5a36..a8504ee1e 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -1011,8 +1011,11 @@ function showNormalImage(id) { if (description_images.length>0) { for (var i=0; i").attr("href",image.attr('src')); @@ -1024,6 +1027,7 @@ function showNormalImage(id) { } + //文件、帖子、通知分享 function org_id_click(){ var sendText = $("input[name='org_id']:checked").next().text(); @@ -1156,3 +1160,17 @@ function disable_down(source, des, hint){ } } + +function getRootPath(){ + //获取当前网址,如: http://localhost:8083/uimcardprj/share/meun.jsp + var curWwwPath=window.document.location.href; + //获取主机地址之后的目录,如: uimcardprj/share/meun.jsp + var pathName=window.document.location.pathname; + var pos=curWwwPath.indexOf(pathName); + //获取主机地址,如: http://localhost:8083 + var localhostPaht=curWwwPath.substring(0,pos); + //获取带"/"的项目名,如:/uimcardprj + var projectName=pathName.substring(0,pathName.substr(1).indexOf('/')+1); + return(localhostPaht+projectName); +} +