Example #1
0
	/**
	 * Request to upgrade a skill
	 */
	function onRequestSkillUp()
	{
		var index = this.parentNode.parentNode.getAttribute('data-index');
		SkillList.onIncreaseSkill(
			parseInt(index, 10)
		);
	}
Example #2
0
		_levelupBtn.click(function(){
			var index = this.parentNode.parentNode.getAttribute('data-index');
			SkillList.onIncreaseSkill(
				parseInt(index, 10)
			);
		});