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
......@@ -491,27 +491,20 @@
function isValidCharacter(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 = /^[%:~]+$/
if (!regExp.test(title.value) && title.value != "")
{
//title.value = '';
var val = document.getElementById(txtTitle).value;
var val1 = val.substring(0, val.length - 1);
title.value = val1;
return false;
}
else
{
return true;
}
}
var regExp = /^[!@#$^&*()_+{}"<>?.,';\][=-`0-9a-zA-Z\-\s]+$/
//var regExp = /^[%:~]+$/
if (!regExp.test(title.value) && title.value != "")
{
//title.value = '';
var val = document.getElementById(txtTitle).value;
var val1 = val.replace("%","").replace(":","").replace("~","").replace("|","");
title.value = val1;
return false;
}
else
{
return true;
}
}
// Changed by Sneha on 23-06-2016 for special character [End]
\ No newline at end of file
......@@ -2137,7 +2137,7 @@
{
//title.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;
return false;
}
......@@ -2147,6 +2147,4 @@
}
}
// Changed by Sneha on 23-06-2016 for special character [End]
\ 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