Fixed problems with Javascript and newlines
[koha.git] / koha-tmpl / intranet-tmpl / default / en / parameters / categoryitem.tmpl
index ee62f12..745d7f4 100644 (file)
                 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;
                 }
         }