healthchecks/static/js/project.js
Pēteris Caune 0ff4bd01e0
Improved UI to invite users from account's other projects. Fixes #258.
The team size limit is applied to the number of distinct users across all projects. Fixes #332.
2020-02-14 13:05:21 +02:00

28 lines
693 B
JavaScript

$(function() {
$(".member-remove").click(function() {
var $this = $(this);
$("#rtm-email").text($this.data("email"));
$("#remove-team-member-email").val($this.data("email"));
$('#remove-team-member-modal').modal("show");
return false;
});
$('#invite-team-member-modal').on('shown.bs.modal', function () {
$('#itm-email').focus();
})
$('#set-project-name-modal').on('shown.bs.modal', function () {
$('#project-name').focus();
})
$(".add-to-team").click(function() {
$("#itm-email").val(this.dataset.email);
$("#invite-team-member-modal form").submit();
return false;
});
});