From 60bbe89c0dc1bcbd2b8cdb9166059627bb012d26 Mon Sep 17 00:00:00 2001 From: cxt Date: Thu, 21 Jul 2016 14:05:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=9A=E5=AE=A2=E7=9A=84=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/blog_comments/_edit.html.erb | 11 ++++++++++- app/views/blog_comments/_new.html.erb | 4 +++- app/views/blogs/index.html.erb | 7 +++++++ public/javascripts/application.js | 1 + 4 files changed, 21 insertions(+), 2 deletions(-) diff --git a/app/views/blog_comments/_edit.html.erb b/app/views/blog_comments/_edit.html.erb index 048402635..b9d10527d 100644 --- a/app/views/blog_comments/_edit.html.erb +++ b/app/views/blog_comments/_edit.html.erb @@ -39,6 +39,8 @@ %>

+

+

@@ -56,4 +58,11 @@
- \ No newline at end of file + + \ No newline at end of file diff --git a/app/views/blog_comments/_new.html.erb b/app/views/blog_comments/_new.html.erb index e336c7d01..de7be84c1 100644 --- a/app/views/blog_comments/_new.html.erb +++ b/app/views/blog_comments/_new.html.erb @@ -36,6 +36,8 @@ :maxlength => 5000 }%>

+

+

@@ -62,4 +64,4 @@
-->
- \ No newline at end of file + diff --git a/app/views/blogs/index.html.erb b/app/views/blogs/index.html.erb index 50db24063..f473ab534 100644 --- a/app/views/blogs/index.html.erb +++ b/app/views/blogs/index.html.erb @@ -184,3 +184,10 @@ function nh_init_board(params){ + diff --git a/public/javascripts/application.js b/public/javascripts/application.js index c3435d153..b7468366a 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -1261,6 +1261,7 @@ function elocalStorage(editor,mdu){ h = h < 10 ? '0' + h : h; m = m < 10 ? '0' + m : m; s = s < 10 ? '0' + s : s; + editor.sync(); if(!editor.isEmpty()){ add_data("content",mdu,editor.html()); $('#e_tip').html(" 数据已于 " + h + ':' + m + ':' + s +" 保存 ");