Don't set ISO'd time on the time element, 4chan will give the timestamps.

This commit is contained in:
Nicolas Stepien 2012-05-13 16:51:01 +02:00
parent 4bfab3c3b9
commit 1d0f5a3d24
2 changed files with 1 additions and 4 deletions

View File

@ -2824,8 +2824,7 @@
}
node = $('.postInfo > .dateTime', post.el);
Time.date = Time.parse(node.textContent);
node.textContent = Time.funk(Time);
return node.dataset.time = Time.date.toISOString();
return node.textContent = Time.funk(Time);
},
foo: function() {
var code;

View File

@ -2226,8 +2226,6 @@ Time =
node = $ '.postInfo > .dateTime', post.el
Time.date = Time.parse node.textContent
node.textContent = Time.funk(Time)
# Set the datetime attribute, ISO'd.
node.dataset.time = Time.date.toISOString()
foo: ->
code = Conf['time'].replace /%([A-Za-z])/g, (s, c) ->
if c of Time.formatters