aboutsummaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-05-29 23:18:34 -0400
committerUnknwon <u@gogs.io>2017-05-29 23:18:34 -0400
commita1d411a0182dd5c5ba227acf43781181c11a1ae3 (patch)
tree9f5208edb9dcfd0df3be64a8cad99d1650a328b4 /public/js
parentdbb7e5464b6a9cad430b2f36b52e7674211f51cf (diff)
ldap: minor fix for PR #4398
Diffstat (limited to 'public/js')
-rw-r--r--public/js/gogs.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index 5aca5652..4eefff5c 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -254,19 +254,6 @@ function initRepository() {
$prompt.hide();
}
});
-
- // Enable or select internal/external wiki system and issue tracker.
- $('.enable-system').change(function () {
- if (this.checked) {
- $($(this).data('target')).removeClass('disabled');
- } else {
- $($(this).data('target')).addClass('disabled');
- }
- });
- $('.enable-system-radio').change(function () {
- $($(this).data('enable')).removeClass('disabled');
- $($(this).data('disable')).addClass('disabled');
- });
}
// Branches
@@ -1299,7 +1286,7 @@ $(document).ready(function () {
});
});
- // Helpers.
+ // Helpers
$('.delete-button').click(function () {
var $this = $(this);
$('.delete.modal').modal({
@@ -1335,6 +1322,19 @@ $(document).ready(function () {
});
});
+ // Check or select on option to enable/disable target region
+ $('.enable-system').change(function () {
+ if (this.checked) {
+ $($(this).data('target')).removeClass('disabled');
+ } else {
+ $($(this).data('target')).addClass('disabled');
+ }
+ });
+ $('.enable-system-radio').change(function () {
+ $($(this).data('enable')).removeClass('disabled');
+ $($(this).data('disable')).addClass('disabled');
+ });
+
// Set anchor.
$('.markdown').each(function () {
var headers = {};