You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

43 lines
1.2 KiB

$(function() {
$(".member-remove").click(function() {
$("#rtm-email").text(this.dataset.email);
$("#remove-team-member-email").val(this.dataset.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").modal("show");
return false;
});
// Enable the submit button in transfer form when user selects
// the target owner:
$("#new-owner").on("change", function() {
$("#transfer-confirm").prop("disabled", !this.value);
});
$("a[data-revoke-key]").click(function() {
$("#revoke-key-type").val(this.dataset.revokeKey);
$("#revoke-key-modal .name").text(this.dataset.name);
$("#revoke-key-modal").modal("show");
})
$("a[data-create-key]").click(function() {
$("#create-key-type").val(this.dataset.createKey);
$("#create-key-form").submit();
})
});