Use ajax-deferred to trigger "toggleDetails"
Merge pull request #206 from njam/issue-206

Close other events only *after* ajax request to show new one