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.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js
index 0bf65c13..a06fcecb 100644
--- a/public/js/gogs.js
+++ b/public/js/gogs.js
@@ -930,6 +930,15 @@ function initWebhook() {
}
});
+ // Highlight payload on first click
+ $('.hook.history.list .toggle.button').click(function () {
+ $($(this).data('target') + ' .nohighlight').each(function () {
+ var $this = $(this);
+ $this.removeClass('nohighlight');
+ setTimeout(function(){ hljs.highlightBlock($this[0]) }, 500);
+ })
+ })
+
// Test delivery
$('#test-delivery').click(function () {
var $this = $(this);