weaponlist: more compact display

This commit is contained in:
Bryce Allen
2015-07-17 19:49:51 -05:00
parent 09009edbd7
commit 0064062006
3 changed files with 52 additions and 10 deletions

View File

@@ -217,11 +217,18 @@
data["sharpness"].join(",");
data["sharpness_plus_title"] =
data["sharpness_plus"].join(",");
data["sharpness_all_title"] =
data["sharpness_title"] + " ("
+ data["sharpness_plus_title"] + ")";
} else {
// gunner weapons have no sharpness
data["sharpness_title"] = "";
data["sharpness_plus_title"] = "";
data["sharpness_all_title"] = "";
}
data["wtype_short"] =
WEAPON_TYPE_ABBR[data["wtype"]];
data["ELEMENT_ABBR"] = ELEMENT_ABBR;
var html = template_row.render(data);
$("#weapon_table").append(html);
});