# HG changeset patch # User Matti Hamalainen # Date 1294637715 -7200 # Node ID e2f975b0c5185937c163c2e229f674982e4080b1 # Parent da404b8ff282c7bc46f16bce3092e74bf61d6a16 Fix reset functionality. Add startup message. diff -r da404b8ff282 -r e2f975b0c518 index.php --- a/index.php Mon Jan 10 07:21:04 2011 +0200 +++ b/index.php Mon Jan 10 07:35:15 2011 +0200 @@ -411,7 +411,9 @@ list_containers = [".$str."]; list_items = ".(isset($data["items"]) ? getContainerObject("items", 10000, $data["items"]) : "null")."; ".$jsData." + curr_container = null; updatePage(); + statusMsg('Welcome to the editor. (c) Copyright 2011 Matti Hämäläinen aka Ggr Pupunen.'); } "; ?> @@ -425,6 +427,7 @@ statusMsg("Reset operation cancelled."); return; } + initAll(); } function setHTML(id, str) @@ -551,6 +554,11 @@ // Change current container function containerChange(f) { + if (curr_container == null) { + statusMsg("No current container, create or select one."); + return; + } + var c = validateContainerData(f); if (c == null) return;