Commit 5cade3e5 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@102144 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 80c8441a
......@@ -492,9 +492,9 @@
{
var title = document.getElementById(txtTitle);
var regExp = /^[!@#$^&*()_+{}"<>?.,';\][=-`0-9a-zA-Z\-\s]+$/
//var regExp = /^[%:~]+$/
if (!regExp.test(title.value) && title.value != "")
//var regExp = /^[!@#$^&*()_+{}"<>?.,';\][=-`0-9a-z A-Z\-\s]+$/
var regExp = /[%:~|]/
if (regExp.test(title.value) && title.value != "")
{
//title.value = '';
var val = document.getElementById(txtTitle).value;
......
......@@ -1575,7 +1575,8 @@
else if (document.getElementById("Detail"+formNo+"."+dbID+".dimension_desc") != null
&& document.getElementById("Detail"+formNo+"."+dbID+".dimension_desc").value == "")
{
alert("Please Select the Fitting.");
//alert("Please Select the Fitting.");
alert("Please Select the Dimension."); // Changed by Sneha on 24-06-2016, for Dimension alert box.
document.getElementById("Detail"+formNo+"."+dbID+".dimension_desc_pophelp").focus();
return false;
}
......@@ -1784,7 +1785,7 @@
// Item Description
+ "<td>"
+"<input type='text' class='editInputClass' value=\""+valueFromServlet+"\" name='Detail3."+maxRowId+".descr' "
+"id='Detail3."+maxRowId+".descr' maxlength='90' style='width: 100%;' ISCHANGED='false' readOnly = '1'/>"
+"id='Detail3."+maxRowId+".descr' maxlength='90' style='width: 100%;' ISCHANGED='false' readOnly = '1' />"
+"<input type='hidden' class='editInputClass' name='Detail3."+maxRowId+".item_code' "
+"id='Detail3."+maxRowId+".item_code' maxlength='10' style='width: 100%;' />"
......@@ -1792,7 +1793,7 @@
// Limited Edition
+"<td style='text-align:center;'>"
+"<select name='Detail3."+maxRowId+".usage_type' id='usage_type' autofocus = 'true'>"
+"<select name='Detail3."+maxRowId+".usage_type' id='usage_type' >"
+"<option value='N' selected='selected'>No</option>"
+"<option value='Y'>Yes</option>"
+"</select>"
......@@ -2018,6 +2019,8 @@
$('#SKUItemId tbody').append(row);
document.getElementById("Detail3."+ maxRowId +".descr").focus();
}
function itmparntChangeNew(itemCode, action)
......@@ -2109,12 +2112,7 @@
//alert("retVal------"+retVal);
}
// Changed by Sneha on 30/03/2016, add new item [End]
/*
function Demo()
{
alert("This is Demo function ::::::: ");
}*/
// Changed by Sneha on 23-06-2016 for special character [Start]
function specialCharValidate(id)
......@@ -2131,9 +2129,9 @@
{
var title = document.getElementById(txtTitle);
var regExp = /^[!@#$^&*()_+{}"<>?.,';\][=-`0-9a-zA-Z\-\s]+$/
//var regExp = /^[%:~]+$/
if (!regExp.test(title.value) && title.value != "")
//var regExp = /^[!@#$^&*()_+{}"<>?.,';\][=-`0-9 a-zA-Z\-\s]+$/
var regExp = /[%:~|]/
if (regExp.test(title.value) && title.value != "")
{
//title.value = '';
var val = document.getElementById(txtTitle).value;
......@@ -2147,4 +2145,34 @@
}
}
// Changed by Sneha on 23-06-2016 for special character [End]
// Changed by Sneha on 24-06-2016 for Delete row [Start]
function deleteItem(maxRowId)
{
alert("maxId----------"+maxId);
var rowId = document.getElementById('rowId').value;
alert("rowId----------"+rowId);
if(maxId > rowId)
{
document.getElementById('SKUItemId').deleteRow(maxId);
maxId --;
document.getElementById('maxRowId').value = maxId;
document.getElementById("Detail3."+ maxId +".descr").focus();
}
else
{
alert("You have not added any new child product, for the selected parent which can be deleted...!");
}
}
// Changed by Sneha on 24-06-2016 for Delete row [End]
/*
function Demo()
{
alert("This is Demo function ::::::: ");
}*/
\ 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