Commit e7a03b9c authored by smestry's avatar smestry

Updated js for the Product wizard for minor bugs.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@102081 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ff6b5353
...@@ -492,19 +492,13 @@ ...@@ -492,19 +492,13 @@
{ {
var title = document.getElementById(txtTitle); var title = document.getElementById(txtTitle);
//var regExp = /^[a-zA-Z]*$/
//var regExp = /^[a-zA-Z\-\s]+$/
function isValidCharacter(txtTitle)
{
var title = document.getElementById(txtTitle);
var regExp = /^[!@#$^&*()_+{}"<>?.,';\][=-`0-9a-zA-Z\-\s]+$/ var regExp = /^[!@#$^&*()_+{}"<>?.,';\][=-`0-9a-zA-Z\-\s]+$/
//var regExp = /^[%:~]+$/ //var regExp = /^[%:~]+$/
if (!regExp.test(title.value) && title.value != "") if (!regExp.test(title.value) && title.value != "")
{ {
//title.value = ''; //title.value = '';
var val = document.getElementById(txtTitle).value; var val = document.getElementById(txtTitle).value;
var val1 = val.substring(0, val.length - 1); var val1 = val.replace("%","").replace(":","").replace("~","").replace("|","");
title.value = val1; title.value = val1;
return false; return false;
} }
...@@ -513,5 +507,4 @@ ...@@ -513,5 +507,4 @@
return true; return true;
} }
} }
}
// Changed by Sneha on 23-06-2016 for special character [End] // Changed by Sneha on 23-06-2016 for special character [End]
\ No newline at end of file
...@@ -2137,7 +2137,7 @@ ...@@ -2137,7 +2137,7 @@
{ {
//title.value = ''; //title.value = '';
var val = document.getElementById(txtTitle).value; var val = document.getElementById(txtTitle).value;
var val1 = val.substring(0, val.length - 1); var val1 = val.replace("%","").replace(":","").replace("~","").replace("|","");
title.value = val1; title.value = val1;
return false; return false;
} }
...@@ -2148,5 +2148,3 @@ ...@@ -2148,5 +2148,3 @@
} }
// Changed by Sneha on 23-06-2016 for special character [End] // Changed by Sneha on 23-06-2016 for special character [End]
\ No newline at end of file
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment