Skip to content

Instantly share code, notes, and snippets.

@micho
Last active June 26, 2016 03:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save micho/6866656 to your computer and use it in GitHub Desktop.
Save micho/6866656 to your computer and use it in GitHub Desktop.
Support helper for Teambox, so we can query users
$(document).on("click", ".comment a", function(e) {
if ($(this).text().indexOf("@") !== -1) {
e.preventDefault();
var email = $(this).text();
(new Teambox.Views.Dialog({
header: "User " + email + ". <a href='/become/" + email + "'>Become</a>"
, content: "<iframe src='/reports/users/" + email + "' style='width: 100%; height: 800px;'></iframe>"
})).open();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment