X-Git-Url: https://git.yukkurigames.com/?p=labelle.git;a=blobdiff_plain;f=acnl-outfit.js;fp=acnl-outfit.js;h=018fe03fc11413ad7edf6776a5f35ce042b4b44a;hp=333335b70b0cb17c99086b06405106af69d737db;hb=c83ea64a4347932b5eda703374e5ce2d9aebb165;hpb=2c38803211bc5bf0e0dbe8051fac5ba5c3b4f7ee diff --git a/acnl-outfit.js b/acnl-outfit.js index 333335b..018fe03 100644 --- a/acnl-outfit.js +++ b/acnl-outfit.js @@ -124,7 +124,7 @@ function litanize (names, link) { return names.join(names.length == 2 ? " " : ", "); } -function litanizeElement (eid, tid) { +function litanizeElement (eid, tid, ev) { var o = outfit(); document.getElementById(eid).innerHTML = litanize(o, true) + "?"; // TODO: This often generates > 140 characters. Do I care? @@ -135,4 +135,6 @@ function litanizeElement (eid, tid) { choice(["Going out in ", "Labelle suggested ", "I'll wear "]) + litanize(o, false) + ".")); + if (ev) + ev.preventDefault(); }