Cgridview "selectionchanged" Prevent Double Click

I’m using TbGridView with selectionChanged and it’s working fine for the most part. Several of our users though insist on double clicking the row. On the second click it would appear that the id field is already cleared out. After a double click the user is taken to a view page and the id is empty, which results in a error.

'selectionChanged'=>'function(id){ location.href = "'.$this->createUrl('view').'/id/"+$.fn.yiiGridView.getSelection(id);}',

Does anyone know a way to prevent the error caused by double clicking?

Thanks in advance.