From 2f4adf689d05b2e41695eb6d5e555042250331b3 Mon Sep 17 00:00:00 2001 From: Eric Fredricksen Date: Mon, 5 Jul 2010 22:46:58 -0700 Subject: [PATCH] Clear most visible cruft from main.html --- config.js | 1 + main.html | 35 +++++++++++++---------------------- main.js | 11 +++-------- 3 files changed, 17 insertions(+), 30 deletions(-) diff --git a/config.js b/config.js index 7ace681..2f738a7 100644 --- a/config.js +++ b/config.js @@ -178,6 +178,7 @@ K.Spells = [ "Vitreous Humor", "Roger's Grand Illusion", "Covet", + "Black Idaho", "Astral Miasma", "Spectral Oyster", "Acrid Hands", diff --git a/main.html b/main.html index e3b1207..8e309ff 100644 --- a/main.html +++ b/main.html @@ -36,15 +36,15 @@ Name - Crobab + Race - Half Man + Class - Slow Poisoner + Level @@ -59,14 +59,14 @@ - STR18 - CON14 - DEX9 - INT12 - WIS44 - CHA12 - HP Max343 - MP Max6564 + STR + CON + DEX + INT + WIS + CHA + HP Max + MP Max @@ -85,7 +85,6 @@ - Black IdahoLXI @@ -96,7 +95,7 @@ - + @@ -121,7 +120,6 @@ -
WeaponSharpened Stick
Weapon
Shield
Helm
Hauberk
Gold0
Cruzle brass15
@@ -152,7 +150,7 @@ - @@ -160,13 +158,6 @@ - - - - - - -
Kill all the Bads + Kill all the Bads
☑ Kill all the Bads
☒ Kill all the Bads
✓ Kill all the Bads
✔ Kill all the Bads
Kill all the Bads
 
 
 
 
 
 
 
diff --git a/main.js b/main.js index 368896e..6ab0df5 100644 --- a/main.js +++ b/main.js @@ -469,7 +469,7 @@ function ListBox(id, columns, fixedkeys) { }); if (!result.length) { result = $("" + key + ""); - this.box.find("tr").last().after(result); + this.box.append(result); } return result; } else { @@ -942,13 +942,7 @@ function LevelUp() { } function ClearAllSelections() { - Equips.ClearSelection(); - Spells.ClearSelection(); - Stats.ClearSelection(); - Traits.ClearSelection(); - Inventory.ClearSelection(); - Plots.ClearSelection(); - Quests.ClearSelection(); + $.each(AllLists, function () {this.ClearSelection();}); } function RoughTime(s) { @@ -1203,6 +1197,7 @@ function LoadGame(sheet) { Kill.text(game.kill); Log('Loaded game: ' + name); StartTimer(); + ClearAllSelections(); } $(document).unload(function () {