aboutsummaryrefslogtreecommitdiff
path: root/public/js/gogs.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/gogs.js')
-rw-r--r--public/js/gogs.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index 2cd98d3b..0bf65c13 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -341,7 +341,7 @@ function initRepository() {
// Branches
if ($('.repository.settings.branches').length > 0) {
initFilterSearchDropdown('.protected-branches .dropdown');
- $('.enable-protection').change(function () {
+ $('.enable-protection, .enable-whitelist').change(function () {
if (this.checked) {
$($(this).data('target')).removeClass('disabled');
} else {
@@ -1223,7 +1223,9 @@ $(document).ready(function () {
});
// Semantic UI modules.
- $('.dropdown').dropdown();
+ $('.ui.dropdown').dropdown({
+ forceSelection: false
+ });
$('.jump.dropdown').dropdown({
action: 'hide',
onShow: function () {