aboutsummaryrefslogtreecommitdiffstats
path: root/public/ng/js/gogs.js
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-29 18:52:28 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-29 18:52:28 -0400
commita046a31d2be4a72959ec98f1bed7dc5e29ca7126 (patch)
tree31bf3a6fa22a4490f868fbfb988a5b250a09e47e /public/ng/js/gogs.js
parentcd084dacf1108e483461f8c99a0771ce3b402dc4 (diff)
downloadgitea-a046a31d2be4a72959ec98f1bed7dc5e29ca7126.tar.gz
gitea-a046a31d2be4a72959ec98f1bed7dc5e29ca7126.zip
UI: Confirmation box
Diffstat (limited to 'public/ng/js/gogs.js')
-rw-r--r--public/ng/js/gogs.js19
1 files changed, 15 insertions, 4 deletions
diff --git a/public/ng/js/gogs.js b/public/ng/js/gogs.js
index 9a861004c2..4bcdc5c8f5 100644
--- a/public/ng/js/gogs.js
+++ b/public/ng/js/gogs.js
@@ -437,11 +437,22 @@ function initRepoSetting() {
initHookTypeChange();
- $('#transfer-button').click(function () {
- $('#transfer-form').show();
+ // Transfer repository.
+ $('#transfer-repo-btn').magnificPopup({
+ modal: true
+ });
+ $('#transfer-repo-submit').click(function () {
+ $.magnificPopup.close();
+ $('#transfer-repo-form').submit();
});
- $('#delete-button').click(function () {
- $('#delete-form').show();
+
+ // Delete repository.
+ $('#delete-repo-btn').magnificPopup({
+ modal: true
+ });
+ $('#delete-repo-submit').click(function () {
+ $.magnificPopup.close();
+ $('#delete-repo-form').submit();
});
// Collaboration.