Skip to content

Instantly share code, notes, and snippets.

@amackera
Created October 20, 2012 20:16
Show Gist options
  • Save amackera/3924637 to your computer and use it in GitHub Desktop.
Save amackera/3924637 to your computer and use it in GitHub Desktop.
if (this.model.get('survey_url').indexOf('?') == -1) {
// start the survey URL query string
$(this.el).html('The tournament is complete. To see your rank, please complete <a target="_new" href="'+this.model.get('survey_url')+'?entry_0='+window.user.get('alias')+'&entry_10='+window.user.get('id')+'">this survey.</a>')
} else {
$(this.el).html('The tournament is complete. To see your rank, please complete <a target="_new" href="'+this.model.get('survey_url')+'&entry_0='+window.user.get('alias')+'&entry_10='+window.user.get('id')+'">this survey.</a>')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment