Index: openacs-4/packages/acs-subsite/www/admin/site-map/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/admin/site-map/index.adp,v diff -u -r1.6.2.1 -r1.6.2.2 --- openacs-4/packages/acs-subsite/www/admin/site-map/index.adp 10 Oct 2015 12:22:52 -0000 1.6.2.1 +++ openacs-4/packages/acs-subsite/www/admin/site-map/index.adp 27 Sep 2016 08:50:47 -0000 1.6.2.2 @@ -1,7 +1,6 @@ doc @context;literal@ -@javascript;literal@

@doc.title@

Index: openacs-4/packages/acs-subsite/www/admin/site-map/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/admin/site-map/index.tcl,v diff -u -r1.30.2.6 -r1.30.2.7 --- openacs-4/packages/acs-subsite/www/admin/site-map/index.tcl 11 Aug 2016 13:31:24 -0000 1.30.2.6 +++ openacs-4/packages/acs-subsite/www/admin/site-map/index.tcl 27 Sep 2016 08:50:47 -0000 1.30.2.7 @@ -32,16 +32,27 @@ permission::require_permission -object_id $object_id -privilege admin } -if {$new_parent ne ""} { - set javascript "onLoad=\"javascript:document.new_parent.name.focus();document.new_parent.name.select()\"" -} elseif {$new_application ne ""} { - set javascript "onLoad=\"javascript:document.new_application.instance_name.focus();document.new_application.instance_name.select()\"" -} elseif {$rename_application ne ""} { - set javascript "onLoad=\"javascript:document.rename_application.instance_name.focus();document.rename_application.instance_name.select()\"" -} else { - set javascript "" -} +# if {$new_parent ne ""} { +# set onload "document.new_parent.name.focus();document.new_parent.name.select();" +# } elseif {$new_application ne ""} { +# set onload "document.new_application.instance_name.focus();document.new_application.instance_name.select();" +# } elseif {$rename_application ne ""} { +# set onload "document.rename_application.instance_name.focus();document.rename_application.instance_name.select();" +# } else { +# set onload "" +# } +# +# if {$onload ne ""} { +# template::add_body_handler -event onload -script $onload +# } +# +#template::add_body_script -script { +# function check_checkbox () { +# window.document.nodes.node_id.checked = 'true'; +# } +#} + set parent_link [export_vars -base . {expand:multiple {root_id $parent_id}}] set doc(title) [_ acs-subsite.Site_Map] Index: openacs-4/packages/acs-subsite/www/admin/site-map/site-map.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/admin/site-map/site-map.tcl,v diff -u -r1.10.2.3 -r1.10.2.4 --- openacs-4/packages/acs-subsite/www/admin/site-map/site-map.tcl 14 Jul 2016 18:30:50 -0000 1.10.2.3 +++ openacs-4/packages/acs-subsite/www/admin/site-map/site-map.tcl 27 Sep 2016 08:50:47 -0000 1.10.2.4 @@ -32,18 +32,17 @@ permission::require_permission -object_id $object_id -privilege admin } -if {$new_parent ne ""} { - set javascript "onLoad=\"javascript:document.new_parent.name.focus();document.new_parent.name.select()\"" -} elseif {$new_application ne ""} { - set javascript "onLoad=\"javascript:document.new_application.instance_name.focus();document.new_application.instance_name.select()\"" -} elseif {$rename_application ne ""} { - set javascript "onLoad=\"javascript:document.rename_application.instance_name.focus();document.rename_application.instance_name.select()\"" -} else { - set javascript "" -} -set javascript "onload=\"javascript:document.check_checkbox()\"" +#set onload "document.check_checkbox();" +# if {$onload ne ""} { +# template::add_body_handler -event onload -script $onload +# } +# +#template::add_body_script -script { +# function check_checkbox () { +# window.document.nodes.node_id.checked = 'true'; +# } +#} - set parent_link [export_vars -base . {expand:multiple {root_id $parent_id}}] set page_title "Build Your Site Map " Index: openacs-4/packages/acs-subsite/www/site-map/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/site-map/index.adp,v diff -u -r1.8.2.1 -r1.8.2.2 --- openacs-4/packages/acs-subsite/www/site-map/index.adp 27 Sep 2016 07:56:32 -0000 1.8.2.1 +++ openacs-4/packages/acs-subsite/www/site-map/index.adp 27 Sep 2016 08:50:47 -0000 1.8.2.2 @@ -1,7 +1,6 @@ @page_title;literal@ @context;literal@ -@javascript;literal@ Index: openacs-4/packages/acs-subsite/www/site-map/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/site-map/index.tcl,v diff -u -r1.9.2.3 -r1.9.2.4 --- openacs-4/packages/acs-subsite/www/site-map/index.tcl 11 Aug 2016 13:31:24 -0000 1.9.2.3 +++ openacs-4/packages/acs-subsite/www/site-map/index.tcl 27 Sep 2016 08:50:47 -0000 1.9.2.4 @@ -26,16 +26,12 @@ set parent_id $node(parent_id) set object_id $node(object_id) -if {$new_parent ne ""} { - set javascript "onLoad=\"javascript:document.new_parent.name.focus();document.new_parent.name.select()\"" -} elseif {$new_application ne ""} { - set javascript "onLoad=\"javascript:document.new_application.instance_name.focus();document.new_application.instance_name.select()\"" -} elseif {$rename_application ne ""} { - set javascript "onLoad=\"javascript:document.rename_application.instance_name.focus();document.rename_application.instance_name.select()\"" -} else { - set javascript "" -} -set javascript "onload=\"javascript:document.check_checkbox()\"" +# template::add_body_script -script { +# function check_checkbox () { +# window.document.nodes.node_id.checked = 'true'; +# } +# } +# template::add_body_handler -event onload -script "check_checkbox();" set parent_link [export_vars -base . {expand:multiple {root_id $parent_id}}]