Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

Antti Väyrynen / Moya

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • moya
  • code
  • LanBortalWeb
  • WebContent
  • resources
  • script
  • shopscript.js
  • Tuomas Riihimäki's avatar
    Changed layout, added shopping for bill, and propably something else... · 4f95edcd
    Tuomas Riihimäki committed Aug 19, 2010
    4f95edcd
shopscript.js 329 Bytes
BlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
function setCartCount(elem, newVal)
{
	var chfield = elem;
	
	if(newVal < 0)
	{
		newVal = 0;
	}
	
	chfield.val(newVal);
	 // parseTotal();
	 
	
	return false;
}

function changeCartCount(elem,val)
{
	var chfield = elem;
	var oldcount = parseInt(chfield.val());
	var newVal = oldcount+val;
	
	return setCartCount(elem,newVal);

}