Index: openacs-4/packages/acs-templating/tcl/head-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/head-procs.tcl,v diff -u -r1.45.2.33 -r1.45.2.34 --- openacs-4/packages/acs-templating/tcl/head-procs.tcl 5 Oct 2022 14:04:29 -0000 1.45.2.33 +++ openacs-4/packages/acs-templating/tcl/head-procs.tcl 7 Oct 2022 07:04:32 -0000 1.45.2.34 @@ -976,7 +976,10 @@ ad_proc -private template::register_double_click_handler {} { } { - template::add_body_script -script [ns_trim { + template::add_body_handler \ + -event load \ + -identifier template::register_double_click_handler \ + -script [ns_trim { function oacs_reenable_double_click_handler(target) { if ( target.dataset.oacsClicked == 'true') { target.dataset.oacsClicked = false; @@ -1025,6 +1028,7 @@ } { template::register_double_click_handler + # # Concatenate the JavaScript event handlers for the body tag #