Bug 4833: OPAC - remove \n from strings for translation
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
3a63dda868
commit
252d595194
2 changed files with 6 additions and 6 deletions
|
@ -129,14 +129,14 @@ $(function() {
|
|||
var alertString2;
|
||||
|
||||
if(f.addshelf.value.length ==0){
|
||||
_alertString += _("- You must enter a List Name\n");
|
||||
_alertString += _("- You must enter a List Name") + "\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)");
|
||||
alertString2 += "\n------------------------------------------------------------------------------------\n\n";
|
||||
alertString2 += _alertString;
|
||||
alert(alertString2);
|
||||
}
|
||||
|
|
|
@ -48,14 +48,14 @@ $.tablesorter.addParser({
|
|||
var alertString2;
|
||||
|
||||
if(f.title.value.length ==0){
|
||||
_alertString += _("- You must enter a Title\n");
|
||||
_alertString += _("- You must enter a Title") + "\n";
|
||||
}
|
||||
|
||||
if (_alertString.length==0) {
|
||||
f.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)");
|
||||
alertString2 += "\n------------------------------------------------------------------------------------\n\n";
|
||||
alertString2 += _alertString;
|
||||
alert(alertString2);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue