This is an automated email from the ASF dual-hosted git repository.
zhangjuntao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-website.git
The following commit(s) were added to refs/heads/master by this push:
new 7f73992 fix: not set data (#243)
7f73992 is described below
commit 7f73992da59f78e19fdd2d5f743e53faed40ddbd
Author: Juntao Zhang <[email protected]>
AuthorDate: Thu Mar 11 00:04:24 2021 +0800
fix: not set data (#243)
---
layouts/shortcodes/downloads-block.html | 2 +-
themes/docsy/layouts/downloads/baseof.html | 10 ++++++----
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/layouts/shortcodes/downloads-block.html
b/layouts/shortcodes/downloads-block.html
index e7d2199..fe37176 100755
--- a/layouts/shortcodes/downloads-block.html
+++ b/layouts/shortcodes/downloads-block.html
@@ -1,4 +1,4 @@
-<div class="card-wrapper">
+<div class="card-wrapper download-wrapper">
{{ range .Site.Data.releases }}
<div class="card item">
<div class="card-body">
diff --git a/themes/docsy/layouts/downloads/baseof.html
b/themes/docsy/layouts/downloads/baseof.html
index 2e9b866..d1e5d29 100644
--- a/themes/docsy/layouts/downloads/baseof.html
+++ b/themes/docsy/layouts/downloads/baseof.html
@@ -23,11 +23,13 @@
{{ partial "sidebar-skywalking.html" . }}
{{ partial "scripts.html" . }}
<script>
- $('.card-wrapper .dropdown-item').on('click', function (e) {
+ $('.download-wrapper').on('click', function (e) {
var label = $(e.target).data('label')
- ga('send', 'event', 'Download Link', 'click', label, {
- nonInteraction: true
- });
+ if(label){
+ ga('send', 'event', 'Download Link', 'click', label, {
+ nonInteraction: true
+ });
+ }
})
</script>
</body>