aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
3 files changed, 12 insertions, 6 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css
index c7a19c19..ad6b682b 100644
--- a/public/css/gogs.css
+++ b/public/css/gogs.css
@@ -2321,6 +2321,9 @@ footer .ui.language .menu {
.repository.wiki.view > .markdown h6:first-of-type {
margin-top: 0;
}
+.repository.settings.options .box.field {
+ padding-left: 27px;
+}
.repository.settings.collaboration .collaborator.list {
padding: 0;
}
diff --git a/public/js/gogs.js b/public/js/gogs.js
index 17c7b53d..659bc741 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -265,11 +265,8 @@ function initRepository() {
}
});
$('.enable-system-radio').change(function () {
- if (this.value == 'false') {
- $($(this).data('target')).addClass('disabled');
- } else if (this.value == 'true') {
- $($(this).data('target')).removeClass('disabled');
- }
+ $($(this).data('enable')).removeClass('disabled');
+ $($(this).data('disable')).addClass('disabled');
});
}
@@ -1289,7 +1286,7 @@ $(document).ready(function () {
$this.data('url', url);
$this.removeClass('disabled');
} else {
- $this.remove();
+ $this.remove();
}
});
});
diff --git a/public/less/_repository.less b/public/less/_repository.less
index efda68f3..7d2c2847 100644
--- a/public/less/_repository.less
+++ b/public/less/_repository.less
@@ -1325,6 +1325,12 @@
}
&.settings {
+ &.options {
+ .box.field {
+ padding-left: 27px;
+ }
+ }
+
&.collaboration {
.collaborator.list {
padding: 0;