# HG changeset patch # User Matti Hamalainen # Date 1294655782 -7200 # Node ID 4add67f750755d2bf1ea95293e2e939d4e1dd5fd # Parent 716329d473729e7008d47a612369d7fa62a8c1bd Moar info. diff -r 716329d47372 -r 4add67f75075 index.php --- a/index.php Mon Jan 10 11:30:49 2011 +0200 +++ b/index.php Mon Jan 10 12:36:22 2011 +0200 @@ -301,6 +301,7 @@ + items total @@ -515,9 +516,14 @@ o = document.getElementById("container_list"); o.options.length = 0; + var total_items = 0; + var total_slots = 0; for (var i = 0; i < list_containers.length; i++) { o.options[i] = new Option(list_containers[i].name +" (" + list_containers[i].items.length +" of "+ list_containers[i].slots +" items)", i, false); + total_items += list_containers[i].items.length; + total_slots += list_containers[i].slots; } + setHTML("containers_info", total_items+" / "+total_slots); } else { container_list_editor.style.display = "none"; } @@ -528,7 +534,6 @@ if (curr_container != null) { container_editor.style.display = "block"; setHTML("curr_name", curr_container.name); - setHTML("curr_info", curr_container.items.length+" / "+curr_container.slots); if (curr_container.changed) {