Last active
June 26, 2016 03:45
-
-
Save micho/6866656 to your computer and use it in GitHub Desktop.
Support helper for Teambox, so we can query users
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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