Commit e3613988 authored by Hydrox6's avatar Hydrox6

Fixed a bug where pets could be highlit without the checkbox being on

Before, if you put some invalid text in a box, then disabled the box, the pet would show as gotten with no number. That functionality can still be gotten by leaving a box checked.
parent 658429a4
......@@ -62,14 +62,14 @@ function generateImage()
var data = new Array();
for(var i = 0, namelen = safeNames.length; i < namelen; i++)
{
var val = document.getElementById(safeNames[i]).value;
if(val == "")
var val = document.getElementById(safeNames[i]);
if(!val.parentNode.children[0].checked)
{
data.push("-1");
}
else
{
data.push(val);
data.push(val.value);
}
}
var iX = parseInt(document.getElementById("gridX").value);
......
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