From 23f42d92c917564435a00e8e75633b8056bd7b0d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 27 Aug 2015 23:06:14 +0800 Subject: add webhook recent deliveries --- public/js/gogs.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'public/js/gogs.js') 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) { -- cgit v1.2.3