Skip to content

Commit

Permalink
Add new Validation - Comma or slash Not Allowed in Title
Browse files Browse the repository at this point in the history
  • Loading branch information
farooqsheikhpk committed Jan 24, 2024
1 parent 5e048f5 commit 1f9b237
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/views/admin/upload/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,11 @@ function validate(){
return false;
}
if(title.indexOf(',') !== -1){
if( title.indexOf(',') !== -1
|| title.indexOf('/') !== -1
){
//event.preventDefault();
alert( "Comma Not Allowed in Title");
alert( "Comma or slash Not Allowed in Title");
return false;
}
Expand Down

0 comments on commit 1f9b237

Please sign in to comment.