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

9 years ago
3 years ago
9 years ago
  1. $(function() {
  2. $(".member-remove").click(function() {
  3. $("#rtm-email").text(this.dataset.email);
  4. $("#remove-team-member-email").val(this.dataset.email);
  5. $('#remove-team-member-modal').modal("show");
  6. return false;
  7. });
  8. $('#invite-team-member-modal').on('shown.bs.modal', function () {
  9. $('#itm-email').focus();
  10. })
  11. $('#set-project-name-modal').on('shown.bs.modal', function () {
  12. $('#project-name').focus();
  13. })
  14. $(".add-to-team").click(function() {
  15. $("#itm-email").val(this.dataset.email);
  16. $("#invite-team-member-modal").modal("show");
  17. return false;
  18. });
  19. // Enable the submit button in transfer form when user selects
  20. // the target owner:
  21. $("#new-owner").on("change", function() {
  22. $("#transfer-confirm").prop("disabled", !this.value);
  23. });
  24. $("a[data-revoke-key]").click(function() {
  25. $("#revoke-key-type").val(this.dataset.revokeKey);
  26. $("#revoke-key-modal .name").text(this.dataset.name);
  27. $("#revoke-key-modal").modal("show");
  28. })
  29. $("a[data-create-key]").click(function() {
  30. $("#create-key-type").val(this.dataset.createKey);
  31. $("#create-key-form").submit();
  32. })
  33. });