diff --git a/static/js/posts.js b/static/js/posts.js index ef3143d..e96aa79 100644 --- a/static/js/posts.js +++ b/static/js/posts.js @@ -181,6 +181,13 @@ var localPosts = function() { undoDelete: UndoDelete, }; }(); +var movePostHTML = function(postID) { + let $tmpl = document.getElementById('move-tmpl'); + if ($tmpl === null) { + return ""; + } + return $tmpl.innerHTML.replace(/POST_ID/g, postID); +} var createPostEl = function(post, owned) { var $post = document.createElement('div'); var title = (post.title || post.id); @@ -194,7 +201,7 @@ var createPostEl = function(post, owned) { posted = getFormattedDate(new Date(post.created)) } var hasDraft = H.exists('draft' + post.id); - $post.innerHTML += '
Sync error: ' + post.error + '
'; diff --git a/templates/user/articles.tmpl b/templates/user/articles.tmpl index 0eccc9e..92f9c40 100644 --- a/templates/user/articles.tmpl +++ b/templates/user/articles.tmpl @@ -5,6 +5,9 @@ font-style: italic; color: #666; } + #move-tmpl { + display: none; + }