fix syntax

This commit is contained in:
Martin Zimmermann 2014-05-27 14:27:35 +02:00
parent 7474be12f0
commit 14fac577df
2 changed files with 4 additions and 3 deletions

View File

@ -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) {

View File

@ -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 {