comparison index.php @ 20:5208a2a2668d

Comment out HTML comments in JavaScript portions, IE is happier that way, and of course it's the Right Thing To Do.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 10 Jan 2011 13:18:05 +0200
parents 4add67f75075
children f9211d1917b7
comparison
equal deleted inserted replaced
19:4add67f75075 20:5208a2a2668d
403 this.getItemByIndex = function(id) { 403 this.getItemByIndex = function(id) {
404 if (id < 0 || id >= this.items.length) return null; 404 if (id < 0 || id >= this.items.length) return null;
405 return this.items[id]; 405 return this.items[id];
406 } 406 }
407 } 407 }
408 --> 408 //-->
409 <? 409 <?
410 function getContainerObject($name, $slots, $items) 410 function getContainerObject($name, $slots, $items)
411 { 411 {
412 return "new Container(\"".$name."\", \"".$slots."\", [".getJSArraySegment($items)."])"; 412 return "new Container(\"".$name."\", \"".$slots."\", [".getJSArraySegment($items)."])";
413 } 413 }
440 curr_container = null; 440 curr_container = null;
441 } 441 }
442 "; 442 ";
443 ?> 443 ?>
444 <!-- kludge --><!-- 444 <!-- kludge --><!--
445
446 445
447 function resetAll() 446 function resetAll()
448 { 447 {
449 var answer = confirm("Really delete all defined containers and reset item pool to original state? You will have to re-define containers from scratch."); 448 var answer = confirm("Really delete all defined containers and reset item pool to original state? You will have to re-define containers from scratch.");
450 if (!answer) { 449 if (!answer) {
977 976
978 initContainers(); 977 initContainers();
979 initItems(); 978 initItems();
980 initSettings(); 979 initSettings();
981 updatePage(); 980 updatePage();
982 --> 981 //-->
983 </script> 982 </script>
984 <? 983 <?
985 } 984 }
986 985
987 if ($errorSet) { 986 if ($errorSet) {