diff options
author | Git <git@what.cd> | 2013-01-15 08:00:37 +0000 |
---|---|---|
committer | Git <git@what.cd> | 2013-01-15 08:00:37 +0000 |
commit | e89055f09f2f0def18e47aae847ea6a7b7a173e9 (patch) | |
tree | a5e97faf1e82a17c7d1e43543b325b247e900358 /static/functions/comments.js | |
parent | 77a334e212cbc674bd1294761e231a9e95afd440 (diff) | |
download | Gazelle-e89055f09f2f0def18e47aae847ea6a7b7a173e9.zip Gazelle-e89055f09f2f0def18e47aae847ea6a7b7a173e9.tar.gz Gazelle-e89055f09f2f0def18e47aae847ea6a7b7a173e9.tar.bz2 |
Empty commit
Diffstat (limited to 'static/functions/comments.js')
-rw-r--r-- | static/functions/comments.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/functions/comments.js b/static/functions/comments.js index 7aeccb1..0f68a15 100644 --- a/static/functions/comments.js +++ b/static/functions/comments.js @@ -41,7 +41,7 @@ function Edit_Form(post,key) { } $('#bar' + postid).raw().cancel = $('#content' + postid).raw().innerHTML; $('#bar' + postid).raw().oldbar = $('#bar' + postid).raw().innerHTML; - $('#content' + postid).raw().innerHTML = "<div id=\"preview" + postid + "\"></div><form id=\"form" + postid + "\" method=\"post\"><input type=\"hidden\" name=\"auth\" value=\"" + authkey + "\" /><input type=\"hidden\" name=\"key\" value=\"" + key + "\" /><input type=\"hidden\" name=\"post\" value=\"" + postid + "\" /><textarea id=\"editbox" + postid + "\" onkeyup=\"resize('editbox" + postid + "');\" name=\"body\" cols=\""+boxWidth+"\" rows=\"10\"></textarea></form>"; + $('#content' + postid).raw().innerHTML = "<div id=\"preview" + postid + "\"></div><form id=\"form" + postid + "\" method=\"post\" action=\"\"><input type=\"hidden\" name=\"auth\" value=\"" + authkey + "\" /><input type=\"hidden\" name=\"key\" value=\"" + key + "\" /><input type=\"hidden\" name=\"post\" value=\"" + postid + "\" /><textarea id=\"editbox" + postid + "\" onkeyup=\"resize('editbox" + postid + "');\" name=\"body\" cols=\""+boxWidth+"\" rows=\"10\"></textarea></form>"; $('#bar' + postid).raw().innerHTML = "<input type=\"button\" value=\"Preview\" onclick=\"Preview_Edit(" + postid + ");\" /><input type=\"button\" value=\"Post\" onclick=\"Save_Edit(" + postid + ")\" /><input type=\"button\" value=\"Cancel\" onclick=\"Cancel_Edit(" + postid + ");\" />"; ajax.get("?action=get_post&post=" + postid, function(response){ $('#editbox' + postid).raw().value = html_entity_decode(response); |