Twitter logo, you have been way more trouble than you were worth.
[labelle.git] / acnl-outfit.js
index 50b9832..018fe03 100644 (file)
@@ -76,7 +76,8 @@ function isPosessive (item) {
 }
 
 function isPlural (item) {
-    return (item.substr(-1) === "s"
+    return item.substr(-8) === "headgear"
+        || (item.substr(-1) === "s"
             && item.substr(-2) !== "ss"
             && item.substr(-6) !== "cosmos"); // :(
 }
@@ -123,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?
@@ -134,4 +135,6 @@ function litanizeElement (eid, tid) {
                 choice(["Going out in ",
                         "Labelle suggested ",
                         "I'll wear "]) + litanize(o, false) + "."));
+    if (ev)
+        ev.preventDefault();
 }