This is an automated email from the ASF dual-hosted git repository.
Abacn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new cf5624f3086 Fix "Load more" button on blog page (#40478)
cf5624f3086 is described below
commit cf5624f3086c13bc36631ebfbcbca3d791605674
Author: Yi Hu <[email protected]>
AuthorDate: Fri Oct 9 09:31:35 2026 -0400
Fix "Load more" button on blog page (#40478)
jQuery is loaded with `defer` in head.html, causing `$` to be undefined
when the inline script in blog/list.html runs. Use standard DOM APIs to
attach the click handler on #load-button instead.
---
website/www/site/layouts/blog/list.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/website/www/site/layouts/blog/list.html
b/website/www/site/layouts/blog/list.html
index 6a75db9635a..5177ffb0c74 100644
--- a/website/www/site/layouts/blog/list.html
+++ b/website/www/site/layouts/blog/list.html
@@ -106,8 +106,8 @@ var htfConfig = {
setDisabledButtonClass: "disable-button"
}
var htf = new CategoriesFilter(htfConfig);
-$("#load-button").click(function(){
- $(this).toggleClass('tf-filter-item');
+document.getElementById("load-button").addEventListener("click", function(){
+ this.classList.toggle('tf-filter-item');
htf.showMore();
htf.showCheck(htfConfig.filters[0].name, false);
});