From 43ae7c225976c1f27e1a4e91ea8d67e173ed13cb Mon Sep 17 00:00:00 2001 From: wolfpac444 Date: Tue, 22 Apr 2003 23:09:46 +0000 Subject: [PATCH] Fixed problems with Javascript and newlines --- .../default/en/parameters/categorie.tmpl | 10 +++++----- .../default/en/parameters/categoryitem.tmpl | 10 +++++----- .../default/en/parameters/itemtypes.tmpl | 12 ++++++------ .../en/parameters/marctagstructure.tmpl | 6 +++--- .../default/en/parameters/printers.tmpl | 8 ++++---- .../default/en/parameters/stopwords.tmpl | 6 +++--- .../en/parameters/systempreferences.tmpl | 8 ++++---- .../default/en/parameters/z3950servers.tmpl | 18 +++++++++--------- 8 files changed, 39 insertions(+), 39 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/default/en/parameters/categorie.tmpl b/koha-tmpl/intranet-tmpl/default/en/parameters/categorie.tmpl index aa84b981c7..e0c607cf8d 100644 --- a/koha-tmpl/intranet-tmpl/default/en/parameters/categorie.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/parameters/categorie.tmpl @@ -39,20 +39,20 @@ var _alertString=""; var alertString2; if (f.categorycode.value.length==0) { - _alertString += "- categorycode missing\\n"; + _alertString += "- categorycode missing\n"; } // alert(window.document.Aform.description.value); if (!(isNotNull(window.document.Aform.description,1))) { - _alertString += "- description missing\\n"; + _alertString += "- description missing\n"; } if (!isNum(f.upperagelimit,0)) { - _alertString += "- upperagelimit is not a number\\n"; + _alertString += "- upperagelimit is not a number\n"; } if (_alertString.length==0) { document.Aform.submit(); } else { - alertString2 = "Form not submitted because of the following problem(s)\\n"; - alertString2 += "------------------------------------------------------------------------------------\\n\\n"; + alertString2 = "Form not submitted because of the following problem(s)\n"; + alertString2 += "------------------------------------------------------------------------------------\n\n"; alertString2 += _alertString; alert(alertString2); } diff --git a/koha-tmpl/intranet-tmpl/default/en/parameters/categoryitem.tmpl b/koha-tmpl/intranet-tmpl/default/en/parameters/categoryitem.tmpl index ee62f12435..745d7f4c1d 100644 --- a/koha-tmpl/intranet-tmpl/default/en/parameters/categoryitem.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/parameters/categoryitem.tmpl @@ -39,20 +39,20 @@ var _alertString=""; var alertString2; if (f.categorycode.value.length==0) { - _alertString += "- categorycode missing\\n"; + _alertString += "- categorycode missing\n"; } // alert(window.document.Aform.description.value); if (!(isNotNull(window.document.Aform.description,1))) { - _alertString += "- description missing\\n"; + _alertString += "- description missing\n"; } if (!isNum(f.upperagelimit,0)) { - _alertString += "- upperagelimit is not a number\\n"; + _alertString += "- upperagelimit is not a number\n"; } if (_alertString.length==0) { document.Aform.submit(); } else { - alertString2 = "Form not submitted because of the following problem(s)\\n"; - alertString2 += "------------------------------------------------------------------------------------\\n\\n"; + alertString2 = "Form not submitted because of the following problem(s)\n"; + alertString2 += "------------------------------------------------------------------------------------\n\n"; alertString2 += _alertString; } } diff --git a/koha-tmpl/intranet-tmpl/default/en/parameters/itemtypes.tmpl b/koha-tmpl/intranet-tmpl/default/en/parameters/itemtypes.tmpl index 9e2d7e9f75..dcf41e59fa 100644 --- a/koha-tmpl/intranet-tmpl/default/en/parameters/itemtypes.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/parameters/itemtypes.tmpl @@ -38,22 +38,22 @@ function Check(f) { var _alertString=""; var alertString2; if (f.itemtype.value.length==0) { - _alertString += "- itemtype missing\\n"; + _alertString += "- itemtype missing\n"; } if (!(isNotNull(window.document.Aform.description,1))) { - _alertString += "- description missing\\n"; + _alertString += "- description missing\n"; } if ((!isNum(f.loanlength,0)) && f.loanlength.value.length > 0) { - _alertString += "- loan length is not a number\\n"; + _alertString += "- loan length is not a number\n"; } if ((!isNum(f.rentalcharge,0)) && f.rentalcharge.value.length > 0) { - _alertString += "- rental charge is not a number\\n"; + _alertString += "- rental charge is not a number\n"; } if (_alertString.length==0) { document.Aform.submit(); } else { - alertString2 = "Form not submitted because of the following problem(s)\\n"; - alertString2 += "------------------------------------------------------------------------------------\\n\\n"; + alertString2 = "Form not submitted because of the following problem(s)\n"; + alertString2 += "------------------------------------------------------------------------------------\n\n"; alertString2 += _alertString; alert(alertString2); } diff --git a/koha-tmpl/intranet-tmpl/default/en/parameters/marctagstructure.tmpl b/koha-tmpl/intranet-tmpl/default/en/parameters/marctagstructure.tmpl index 826c2c2b46..6ef5728abf 100644 --- a/koha-tmpl/intranet-tmpl/default/en/parameters/marctagstructure.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/parameters/marctagstructure.tmpl @@ -38,13 +38,13 @@ var _alertString=""; var alertString2; if (f.tagfield.value.length==0) { - _alertString += "- tag number missing\\n"; + _alertString += "- tag number missing\n"; } if (_alertString.length==0) { document.Aform.submit(); } else { - alertString2 = "Form not submitted because of the following problem(s)\\n"; - alertString2 += "------------------------------------------------------------------------------------\\n\\n"; + alertString2 = "Form not submitted because of the following problem(s)\n"; + alertString2 += "------------------------------------------------------------------------------------\n\n"; alertString2 += _alertString; alert(alertString2); } diff --git a/koha-tmpl/intranet-tmpl/default/en/parameters/printers.tmpl b/koha-tmpl/intranet-tmpl/default/en/parameters/printers.tmpl index 1eeb62aa60..2e03fa0927 100644 --- a/koha-tmpl/intranet-tmpl/default/en/parameters/printers.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/parameters/printers.tmpl @@ -39,16 +39,16 @@ var _alertString=""; var alertString2; if (f.printername.value.length==0) { - _alertString += "- printer name missing\\n"; + _alertString += "- printer name missing\n"; } if (f.printqueue.value.length==0) { - _alertString += "- Queue missing\\n"; + _alertString += "- Queue missing\n"; } if (_alertString.length==0) { document.Aform.submit(); } else { - alertString2 = "Form not submitted because of the following problem(s)\\n"; - alertString2 += "------------------------------------------------------------------------------------\\n\\n"; + alertString2 = "Form not submitted because of the following problem(s)\n"; + alertString2 += "------------------------------------------------------------------------------------\n\n"; alertString2 += _alertString; alert(alertString2); } diff --git a/koha-tmpl/intranet-tmpl/default/en/parameters/stopwords.tmpl b/koha-tmpl/intranet-tmpl/default/en/parameters/stopwords.tmpl index a3eb41fa37..f381d0894b 100644 --- a/koha-tmpl/intranet-tmpl/default/en/parameters/stopwords.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/parameters/stopwords.tmpl @@ -39,13 +39,13 @@ var _alertString=""; var alertString2; if (f.word.value.length==0) { - _alertString += "- word missing\\n"; + _alertString += "- word missing\n"; } if (_alertString.length==0) { document.Aform.submit(); } else { - alertString2 = "Form not submitted because of the following problem(s)\\n"; - alertString2 += "------------------------------------------------------------------------------------\\n\\n"; + alertString2 = "Form not submitted because of the following problem(s)\n"; + alertString2 += "------------------------------------------------------------------------------------\n\n"; alertString2 += _alertString; alert(alertString2); } diff --git a/koha-tmpl/intranet-tmpl/default/en/parameters/systempreferences.tmpl b/koha-tmpl/intranet-tmpl/default/en/parameters/systempreferences.tmpl index 5daca2026a..1b0027d259 100644 --- a/koha-tmpl/intranet-tmpl/default/en/parameters/systempreferences.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/parameters/systempreferences.tmpl @@ -38,16 +38,16 @@ var _alertString=""; var alertString2; if (f.variable.value.length==0) { - _alertString += "- variable missing\\n"; + _alertString += "- variable missing\n"; } if (f.value.value.length==0) { - _alertString += "- value missing\\n"; + _alertString += "- value missing\n"; } if (_alertString.length==0) { document.Aform.submit(); } else { - alertString2 = "Form not submitted because of the following problem(s)\\n"; - alertString2 += "------------------------------------------------------------------------------------\\n\\n"; + alertString2 = "Form not submitted because of the following problem(s)\n"; + alertString2 += "------------------------------------------------------------------------------------\n\n"; alertString2 += _alertString; alert(alertString2); } diff --git a/koha-tmpl/intranet-tmpl/default/en/parameters/z3950servers.tmpl b/koha-tmpl/intranet-tmpl/default/en/parameters/z3950servers.tmpl index 175c0afc26..8882393238 100644 --- a/koha-tmpl/intranet-tmpl/default/en/parameters/z3950servers.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/parameters/z3950servers.tmpl @@ -39,31 +39,31 @@ var _alertString=""; var alertString2; if (f.searchfield.value.length==0) { - _alertString += "- site name missing\\n"; + _alertString += "- site name missing\n"; } if (f.host.value.length==0) { - _alertString += "- host missing\\n"; + _alertString += "- host missing\n"; } if (f.port.value.length==0) { - _alertString += "- port missing\\n"; + _alertString += "- port missing\n"; } if (f.db.value.length==0) { - _alertString += "- database missing\\n"; + _alertString += "- database missing\n"; } if (isNaN(f.port.value)) { - _alertString += "- port must be a number\\n"; + _alertString += "- port must be a number\n"; } if (isNaN(f.rank.value)) { - _alertString += "- rank must be a number\\n"; + _alertString += "- rank must be a number\n"; } if (isNaN(f.checked.value) || f.checked.value<0 || f.checked.value>1) { - _alertString += "- checked must be 0 or 1\\n"; + _alertString += "- checked must be 0 or 1\n"; } if (_alertString.length==0) { document.Aform.submit(); } else { - alertString2 = "Form not submitted because of the following problem(s)\\n"; - alertString2 += "------------------------------------------------------------------------------------\\n\\n"; + alertString2 = "Form not submitted because of the following problem(s)\n"; + alertString2 += "------------------------------------------------------------------------------------\n\n"; alertString2 += _alertString; alert(alertString2); } -- 2.39.5