summaryrefslogtreecommitdiffstats
path: root/public/ng/js/gogs.js
diff options
context:
space:
mode:
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.