Subversion Repositories SmartDukaan

Rev

Rev 16040 | Rev 16043 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16040 Rev 16041
Line 117... Line 117...
117
}
117
}
118
 
118
 
119
function updateQuantity(itemId, oldValue){
119
function updateQuantity(itemId, oldValue){
120
	var newvalue = document.getElementById("qty_"+itemId).value;
120
	var newvalue = document.getElementById("qty_"+itemId).value;
121
	if(parseInt(newvalue)>20){
121
	if(parseInt(newvalue)>20){
122
		document.getElementById("max-quantity-msg").style.display="block";
-
 
123
		document.getElementById("max-quantity-msg").text="You can not order more than 20 units of the same product";
122
		document.getElementById("max-quantity-msg").text="You can not order more than 20 units of the same product";
-
 
123
		document.getElementById("max-quantity-msg").style.display="block";
124
		document.getElementById("qty_"+itemId).value=1;
124
		document.getElementById("qty_"+itemId).value=1;
125
		return;
125
		return;
126
	}
126
	}
127
	if (parseInt(newvalue) != parseInt(oldValue)) {
127
	if (parseInt(newvalue) != parseInt(oldValue)) {
128
	    var url = base_url + "cart/update/" + itemId + "/" + newvalue;
128
	    var url = base_url + "cart/update/" + itemId + "/" + newvalue;