pull/98/head
Martin Zimmermann 10 years ago
parent 7474be12f0
commit 14fac577df

@ -9,7 +9,7 @@ define(["app/api", "app/dom", "app/i18n"], function(api, $, i18n) {
} }
var tid = el.getAttribute("data-isso-id") || var tid = el.getAttribute("data-isso-id") ||
el.href.match("^(.+)#isso-thread$")[1] el.href.match(/^(.+)#isso-thread$/)[1]
.replace(/^.*\/\/[^\/]+/, ''); .replace(/^.*\/\/[^\/]+/, '');
if (tid in objs) { if (tid in objs) {

@ -26,10 +26,11 @@ define(["libjs-jade-runtime", "app/utils", "jade!app/text/postbox", "jade!app/te
date = new Date(parseInt(date, 10) * 1000); date = new Date(parseInt(date, 10) * 1000);
} }
return Array.join([ return [
date.getUTCFullYear(), date.getUTCFullYear(),
utils.pad(date.getUTCMonth(), 2), utils.pad(date.getUTCMonth(), 2),
utils.pad(date.getUTCDay(), 2)], "-"); utils.pad(date.getUTCDay(), 2)
].join("-");
}); });
return { return {

Loading…
Cancel
Save