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.

33 lines
902 B

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