# HG changeset patch # User Matti Hamalainen # Date 1294639943 -7200 # Node ID 774db3b4bedc380fe46d5bbc6ac6903143591b40 # Parent fb503ee5489f97a1996b0b0ec0e6582f9a9f7960 Add some informational output. diff -r fb503ee5489f -r 774db3b4bedc index.php --- a/index.php Mon Jan 10 07:44:13 2011 +0200 +++ b/index.php Mon Jan 10 08:12:23 2011 +0200 @@ -9,7 +9,11 @@ "(purple|green) gloves" => 'a ${1} glove', "heavy black metal rings" => "a heavy black metal ring", "bracelet mades of green crystal" => "bracelet made of green crystal", + "alchemist moulded rings" => "alchemist moulded ring", + "white cloth packs for holding salves" => "white cloth pack for holding salves", + "(small|HUGE) shiny boxes for storing minerals" => 'a ${1} shiny box for storing minerals', + "(small|HUGE) sturdy packs for storing potions" => 'a ${1} sturdy pack for storing potions', ); @@ -253,17 +257,19 @@ + items -

Editing container "" -

+

Editing container ""

+
items
@@ -431,6 +437,7 @@ initAll(); } + function setHTML(id, str) { var o = document.getElementById(id); @@ -438,6 +445,7 @@ o.innerHTML = str; } + function setListData(id, list) { var o = document.getElementById(id); @@ -447,6 +455,7 @@ } } + // Update the form data function updatePage() { @@ -454,6 +463,7 @@ if (list_items != null && list_items.changed) { list_items.changed = false; setListData("curr_items", list_items.items); + setHTML("curr_nitems", list_items.items.length); } // List of containers @@ -477,7 +487,7 @@ container_editor.style.display = "block"; setHTML("curr_name", curr_container.name); - setHTML("curr_info", "(" + curr_container.items.length+" / "+curr_container.slots+" items)"); + setHTML("curr_info", curr_container.items.length+" / "+curr_container.slots); if (curr_container.changed) { curr_container.changed = false;