Refactor deprecated String.trim(str)
This commit is contained in:
parent
6e5411ce01
commit
724b9b2c37
@ -49,7 +49,7 @@ $("#addpersonbtn").click(function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function addPerson(p) {
|
function addPerson(p) {
|
||||||
p = String.trim(p);
|
p = p.trim();
|
||||||
if (p == "") {
|
if (p == "") {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user