From 205205d60ac63b6ca7c7d0cdad381f7e3db93970 Mon Sep 17 00:00:00 2001 From: jlgijsbers Date: Wed, 27 Aug 2003 17:34:57 +0000 Subject: [PATCH] Checked in patch by Kurt Steinkraus fixing JavaScript error when help was asked while no keyword was defined. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1831 57a73879-2fb5-44c3-a270-3262357dd7e2 --- templates/classic/html/help_controls.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/classic/html/help_controls.js b/templates/classic/html/help_controls.js index 39f1bf6..199cb1f 100644 --- a/templates/classic/html/help_controls.js +++ b/templates/classic/html/help_controls.js @@ -53,6 +53,7 @@ function trim(value) { 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 updateList() { 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 updatePreview() { 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 clearList() { 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 reviseList(vals) { 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); -- 2.30.2