Fix move click target

The javascript to get the data attribute from the td whether or not there was a piece/img in the cell is now cleaner, just uses the .closest() jquery method to select the td always. It(.closest) starts with the calling element so it can get itself as when there is no piece/img in the cell, but when there is an image it will traverse to the td.
hey Ken,

What happened was after I made the first attempt at the pull request I realized the ‘scratch paper’ file I thought I had saved outside the project was in fact inside the project.
Then I though I was deleting the pull request, but when I went to push the clean version up (without scratch file or console.log in the code) I used the same branch name and it got resurrected. But  if both commits get merged the  clean version will get merged and the detritus will go away ;^)

Nan





On Dec 29, 2014, at 11:07 AM, ken mazaika <notifications@github.com> wrote:

> In app/views/games/select.html.erb:
> 
> >  					var $form =  $('#move');
> >  					$form.attr('action', path); 
> > +					console.log(path);
> You may want to remove the console.log statement. This doesn't work in many versions of internet explorer.
> 
> —
> Reply to this email directly or view it on GitHub.
>