diff templates/classic/html/help_controls.js @ 1781:c4968040459e maint-0.6

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Thu, 04 Sep 2003 23:09:48 +0000
parents 09f0a54829eb
children d6c039c5b52b
line wrap: on
line diff
--- a/templates/classic/html/help_controls.js	Sun Aug 31 04:31:03 2003 +0000
+++ b/templates/classic/html/help_controls.js	Thu Sep 04 23:09:48 2003 +0000
@@ -53,6 +53,7 @@
 
 function updateList() {
   // write back to opener window
+  if (document.frm_help.check==undefined) { return; }
   var list = new Array();
   for (box=0; box < document.frm_help.check.length; box++) {
       if (document.frm_help.check[box].checked) {
@@ -64,6 +65,7 @@
 
 function updatePreview() {
   // add new checkbox selections to preview
+  if (document.frm_help.check==undefined) { return; }
   var list = new Array();
   for (box=0; box < document.frm_help.check.length; box++) {
       if (document.frm_help.check[box].checked) {
@@ -76,6 +78,7 @@
 
 function clearList() {
   // uncheck all checkboxes
+  if (document.frm_help.check==undefined) { return; }
   for (box=0; box < document.frm_help.check.length; box++) {
       document.frm_help.check[box].checked = false;
   }
@@ -83,6 +86,7 @@
 
 function reviseList(vals) {
   // update the checkboxes based on the preview field
+  if (document.frm_help.check==undefined) { return; }
   var to_check;
   var list = vals.split(",");
    for (box=0; box < document.frm_help.check.length; box++) {
@@ -100,6 +104,7 @@
 
 function resetList() {
   // reset preview and check boxes to initial values
+  if (document.frm_help.check==undefined) { return; }
   var to_check;
   var list = original_field.split(',');
   writePreview(list);

Roundup Issue Tracker: http://roundup-tracker.org/