From 28162d7ca9741eaf9d82b403d9bbec893709f382 Mon Sep 17 00:00:00 2001 From: posativ Date: Sun, 28 Oct 2012 00:50:09 +0200 Subject: [PATCH] edit comment works when comment is still pending --- isso/js/isso.js | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/isso/js/isso.js b/isso/js/isso.js index def054f..0f9d1fc 100644 --- a/isso/js/isso.js +++ b/isso/js/isso.js @@ -112,13 +112,6 @@ function form(id, appendfunc, eventfunc) { }; -function update(post) { - - var node = $('#isso_' + post['id']); - $('div.text', node).html(post['text']); -}; - - function insert(post) { /* Insert a comment into #isso_thread. @@ -126,13 +119,12 @@ function insert(post) { :param post: JSON from API call */ - var path = encodeURIComponent(window.location.pathname); - var date = new Date(parseInt(post['created']) * 1000); + var path = encodeURIComponent(window.location.pathname), + date = new Date(parseInt(post['created']) * 1000); // create