diff options
author | Unknwon <u@gogs.io> | 2015-08-05 20:23:08 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-05 20:23:08 +0800 |
commit | 0705f55ce097b9892a7c4c11faa5396c4e557232 (patch) | |
tree | bbd95cb8bbe5bf1fb76b35417d686d4178050d57 /public/js | |
parent | 6d2f25b9f597cb06e7c686bc837e622f059441fb (diff) | |
download | gitea-0705f55ce097b9892a7c4c11faa5396c4e557232.tar.gz gitea-0705f55ce097b9892a7c4c11faa5396c4e557232.zip |
finish new milestone page
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/gogs.js | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index 214cdf9f65..8802ea6423 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -51,21 +51,6 @@ function initRepository() { $('.color-picker').val(color_hex); $('.minicolors-swatch-color').css("background-color", color_hex); }); - $('.delete-label-button').click(function () { - var $this = $(this); - $('.delete-label.modal').modal({ - closable: false, - onApprove: function () { - $.post($this.data('url'), { - "_csrf": csrf, - "id": $this.data("id") - }).done(function (data) { - window.location.href = data.redirect; - }); - } - }).modal('show'); - return false; - }); $('.edit-label-button').click(function () { $('#label-modal-id').val($(this).data('id')); $('#label-modal-title').val($(this).data('title')); @@ -81,6 +66,9 @@ function initRepository() { } // Milestones + if ($('.repository.milestones').length > 0) { + + } if ($('.repository.new.milestone').length > 0) { var $datepicker = $('.milestone.datepicker') $datepicker.datetimepicker({ @@ -118,6 +106,23 @@ $(document).ready(function () { }); $('.poping.up').popup(); + // Helpers. + $('.delete-button').click(function () { + var $this = $(this); + $('.delete.modal').modal({ + closable: false, + onApprove: function () { + $.post($this.data('url'), { + "_csrf": csrf, + "id": $this.data("id") + }).done(function (data) { + window.location.href = data.redirect; + }); + } + }).modal('show'); + return false; + }); + initInstall(); initRepository(); });
\ No newline at end of file |