From da83ca8dd05442d21e97914defeba5b8d6c8295d Mon Sep 17 00:00:00 2001 From: yafeilee Date: Tue, 3 May 2016 02:44:46 +0800 Subject: [PATCH] fixing admin posts bug --- app/assets/javascripts/admin/posts.coffee | 1 - 1 file changed, 1 deletion(-) diff --git a/app/assets/javascripts/admin/posts.coffee b/app/assets/javascripts/admin/posts.coffee index 9aa384f..196362e 100644 --- a/app/assets/javascripts/admin/posts.coffee +++ b/app/assets/javascripts/admin/posts.coffee @@ -39,7 +39,6 @@ $(document).on 'turbolinks:load', -> before_text = source.slice(0, caret_pos) txtBox.val(before_text + src_merged + source.slice(caret_pos+1, source.count)) txtBox.caret('pos',caret_pos + src_merged.length) - txtBox.scope().content = txtBox.val() txtBox.focus() $('input[type=file]').fileUpload opt