aboutsummaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js')
-rw-r--r--public/js/gogs.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index 2193101d..c9a8a1f8 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -341,10 +341,6 @@ function initRepository() {
// Diff
if ($('.repository.diff').length > 0) {
- $('.diff-detail-box .toggle.button').click(function () {
- $($(this).data('target')).slideToggle(100);
- })
-
var $counter = $('.diff-counter');
if ($counter.length < 1) {
return;
@@ -406,6 +402,11 @@ $(document).ready(function () {
}
}
});
+ $('.tabular.menu .item').tab();
+
+ $('.toggle.button').click(function () {
+ $($(this).data('target')).slideToggle(100);
+ });
// Dropzone
if ($('#dropzone').length > 0) {