Lines 94-107
function placeHold () {
Link Here
|
94 |
function Check(f) { |
94 |
function Check(f) { |
95 |
var _alertString=""; |
95 |
var _alertString=""; |
96 |
var alertString2; |
96 |
var alertString2; |
|
|
97 |
|
98 |
if($("#addshelf").val() == "0"){ |
99 |
alert("The number 0 is not a valid name for a list, please enter another name."); |
100 |
} |
97 |
|
101 |
|
98 |
if($("#shelfname").val() == ""){ |
102 |
if($("#addshelf").val() == ""){ |
99 |
_alertString += _("- You must enter a List Name") + "\n"; |
103 |
_alertString += _("- You must enter a List Name") + "\n"; |
100 |
} |
104 |
} |
101 |
|
105 |
|
102 |
if (_alertString.length==0) { |
106 |
if (_alertString.length==0) { |
103 |
f.submit(); |
107 |
f.submit(); |
104 |
} else { |
108 |
} |
|
|
109 |
else { |
105 |
alertString2 = _("Form not submitted because of the following problem(s)"); |
110 |
alertString2 = _("Form not submitted because of the following problem(s)"); |
106 |
alertString2 += "\n------------------------------------------------------------------------------------\n\n"; |
111 |
alertString2 += "\n------------------------------------------------------------------------------------\n\n"; |
107 |
alertString2 += _alertString; |
112 |
alertString2 += _alertString; |