Closed SynbioLucas closed 9 years ago
I think this is the correct technique to use, the code could be written more clearly:
this.orientation = row; //Default value if(func.find('input[class=CR]:checked').checked) { this.orientation = col; }
But its good enough for now
Different orientations will no longer be supported
Currently, orientation is parsed using:
this.orientation = func.find('input[class=RC]:checked').val();
which returnson
, notrow
or anything else useful.Is there a better way to parse this radio button status? For the time being, I'm basically saying if orientation isn't undefined, then it gets set to
row
, and if it is undefined, if gets set tocol
. Could probably be better.