diff --git a/assets/js/blog.js b/assets/js/blog.js
index 8d0d483..6dca9a8 100644
--- a/assets/js/blog.js
+++ b/assets/js/blog.js
@@ -41,6 +41,7 @@
function showComments(cb) {
$('#sd-container').remove()
getComments(function(err) {
+ $('#comments-spinner').hide()
if (err) {
$('#comments').text('derp')
if (typeof cb === 'function') cb(err)
@@ -102,7 +103,7 @@
document.getElementById('thoughts').focus()
return false
}
- comment.timestamp = +comment.timestamp + tzOffset
+ comment.timestamp = +new Date() + tzOffset
var options = { method: 'POST'
, uri: postCommentURL()
@@ -115,8 +116,6 @@
return false
}
- // FIXME check for error, how do we get the returned status code?
-
$('#comment-form').get(0).reset()
comment.timestamp = +new Date()
diff --git a/assets/js/gitter.js b/assets/js/gitter.js
index 09e84d7..befb4a7 100644
--- a/assets/js/gitter.js
+++ b/assets/js/gitter.js
@@ -2,7 +2,7 @@
/// http://github.com/samsonjs/gitter
/// @_sjs
///
-/// Copyright 2010 Sami Samhuri
<%= html %>diff --git a/templates/blog/index.html b/templates/blog/index.html index 0ccc55b..54a1e6e 100644 --- a/templates/blog/index.html +++ b/templates/blog/index.html @@ -35,14 +35,14 @@