View | Details | Raw Unified | Return to bug 4883
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl (-3 / +3 lines)
Lines 129-142 $(function() { Link Here
129
		var alertString2;
129
		var alertString2;
130
130
131
	    if(f.addshelf.value.length ==0){
131
	    if(f.addshelf.value.length ==0){
132
			_alertString += _("- You must enter a List Name\n");
132
			_alertString += _("- You must enter a List Name") + "\n";
133
		}
133
		}
134
134
135
		if (_alertString.length==0) {
135
		if (_alertString.length==0) {
136
			document.Aform.submit();
136
			document.Aform.submit();
137
		} else {
137
		} else {
138
			alertString2 = _("Form not submitted because of the following problem(s)\n");
138
			alertString2 = _("Form not submitted because of the following problem(s)");
139
			alertString2 += "------------------------------------------------------------------------------------\n\n";
139
			alertString2 += "\n------------------------------------------------------------------------------------\n\n";
140
			alertString2 += _alertString;
140
			alertString2 += _alertString;
141
			alert(alertString2);
141
			alert(alertString2);
142
		}
142
		}
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tmpl (-4 / +3 lines)
Lines 48-61 $.tablesorter.addParser({ Link Here
48
		var alertString2;
48
		var alertString2;
49
49
50
	    if(f.title.value.length ==0){
50
	    if(f.title.value.length ==0){
51
			_alertString += _("- You must enter a Title\n");
51
			_alertString += _("- You must enter a Title") + "\n";
52
		}
52
		}
53
53
54
		if (_alertString.length==0) {
54
		if (_alertString.length==0) {
55
			f.submit();
55
			f.submit();
56
		} else {
56
		} else {
57
			alertString2 = _("Form not submitted because of the following problem(s)\n");
57
			alertString2 = _("Form not submitted because of the following problem(s)");
58
			alertString2 += "------------------------------------------------------------------------------------\n\n";
58
			alertString2 += "\n------------------------------------------------------------------------------------\n\n";
59
			alertString2 += _alertString;
59
			alertString2 += _alertString;
60
			alert(alertString2);
60
			alert(alertString2);
61
		}
61
		}
62
- 

Return to bug 4883