From 1f9b23755b09503dcdc3a359f6c060cd54fc94c8 Mon Sep 17 00:00:00 2001 From: Farooq Sheikh Date: Wed, 24 Jan 2024 17:45:41 +0500 Subject: [PATCH] Add new Validation - Comma or slash Not Allowed in Title --- resources/views/admin/upload/index.blade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/views/admin/upload/index.blade.php b/resources/views/admin/upload/index.blade.php index e8bca9d..ab10944 100644 --- a/resources/views/admin/upload/index.blade.php +++ b/resources/views/admin/upload/index.blade.php @@ -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; }