diff options
Diffstat (limited to 'public/js/gogs.js')
-rw-r--r-- | public/js/gogs.js | 28 |
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 = {}; |