Browse Source

Simplify JS

pull/563/head
Pēteris Caune 3 years ago
parent
commit
0134077bd0
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
2 changed files with 4 additions and 9 deletions
  1. +2
    -5
      static/js/profile.js
  2. +2
    -4
      static/js/project.js

+ 2
- 5
static/js/profile.js View File

@ -1,12 +1,9 @@
$(function() {
$(".leave-project").click(function() {
var $this = $(this);
$("#leave-project-name").text($this.data("name"));
$("#leave-project-code").val($this.data("code"));
$("#leave-project-name").text(this.dataset.name);
$("#leave-project-code").val(this.dataset.code);
$('#leave-project-modal').modal("show");
return false;
});

+ 2
- 4
static/js/project.js View File

@ -1,10 +1,8 @@
$(function() {
$(".member-remove").click(function() {
var $this = $(this);
$("#rtm-email").text($this.data("email"));
$("#remove-team-member-email").val($this.data("email"));
$("#rtm-email").text(this.dataset.email);
$("#remove-team-member-email").val(this.dataset.email);
$('#remove-team-member-modal').modal("show");
return false;


Loading…
Cancel
Save