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.20.2.15 -r1.20.2.16 --- openacs-4/packages/acs-templating/tcl/head-procs.tcl 1 Nov 2016 18:29:59 -0000 1.20.2.15 +++ openacs-4/packages/acs-templating/tcl/head-procs.tcl 10 Nov 2016 14:59:22 -0000 1.20.2.16 @@ -792,6 +792,9 @@ }, false); }] } else { + # + # In case, no id is provided, use the "CSSclass" + # template::add_body_script -script [subst { var elems = document.getElementsByClassName('$CSSclass'); for (var i = 0, l = elems.length; i < l; i++) { @@ -834,6 +837,9 @@ } }] } else { + # + # In case, no id is provided, use the "CSSclass" + # template::add_body_script -script [subst { var elems = document.getElementsByClassName('$CSSclass'); for (var i = 0, l = elems.length; i < l; i++) {