mirror of
https://github.com/healthchecks/healthchecks.git
synced 2025-04-07 14:15:34 +00:00
Simplify JS
This commit is contained in:
parent
d48b95c902
commit
0134077bd0
2 changed files with 4 additions and 9 deletions
static/js
|
@ -1,12 +1,9 @@
|
||||||
$(function() {
|
$(function() {
|
||||||
|
|
||||||
$(".leave-project").click(function() {
|
$(".leave-project").click(function() {
|
||||||
var $this = $(this);
|
$("#leave-project-name").text(this.dataset.name);
|
||||||
|
$("#leave-project-code").val(this.dataset.code);
|
||||||
$("#leave-project-name").text($this.data("name"));
|
|
||||||
$("#leave-project-code").val($this.data("code"));
|
|
||||||
$('#leave-project-modal').modal("show");
|
$('#leave-project-modal').modal("show");
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
$(function() {
|
$(function() {
|
||||||
|
|
||||||
$(".member-remove").click(function() {
|
$(".member-remove").click(function() {
|
||||||
var $this = $(this);
|
$("#rtm-email").text(this.dataset.email);
|
||||||
|
$("#remove-team-member-email").val(this.dataset.email);
|
||||||
$("#rtm-email").text($this.data("email"));
|
|
||||||
$("#remove-team-member-email").val($this.data("email"));
|
|
||||||
$('#remove-team-member-modal').modal("show");
|
$('#remove-team-member-modal').modal("show");
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue