@@ -211,7 +211,7 @@
#
# Create Bootstrap3/5 compatible attributes
- if {[::xowiki::CSS toolkit] eq "bootstrap5"} {
+ if {[::template::CSS toolkit] eq "bootstrap5"} {
set data_attribute "data-bs"
set close_button_label ""
} else {
@@ -242,7 +242,7 @@
if (inclass_exam_messages_ts.indexOf(data.ts) == -1) {
var alert = 'alert-' + data.urgency;
block = '
'
- + '$close_button_label '
+ '' + data.from +': ' + data.text + ' '
+ '
';
@@ -253,7 +253,7 @@
el.innerHTML += block;
}
});
- document.querySelectorAll('button.[::xowiki::CSS class close]').forEach(function(e) {
+ document.querySelectorAll('button.[::template::CSS class close]').forEach(function(e) {
//console.log('register dismiss handler ts '+ e.dataset.ts);
e.removeEventListener('click', inclass_exam_dismiss_handler);
e.addEventListener('click', inclass_exam_dismiss_handler);
Index: openacs-4/packages/xowiki/tcl/table-widget-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/table-widget-procs.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/xowiki/tcl/table-widget-procs.tcl 3 Sep 2024 15:37:55 -0000 1.2
+++ openacs-4/packages/xowiki/tcl/table-widget-procs.tcl 24 Oct 2024 17:02:23 -0000 1.3
@@ -104,7 +104,7 @@
if {$renderer ne ""} {
lappend cmd -renderer $renderer
} else {
- switch [::xowiki::CSS toolkit] {
+ switch [::template::CSS toolkit] {
bootstrap -
bootstrap5 {set renderer BootstrapTableRenderer}
default {set renderer YUIDataTableRenderer}
Index: openacs-4/packages/xowiki/tcl/tree-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/tree-procs.tcl,v
diff -u -r1.26 -r1.27
--- openacs-4/packages/xowiki/tcl/tree-procs.tcl 11 Sep 2024 06:15:56 -0000 1.26
+++ openacs-4/packages/xowiki/tcl/tree-procs.tcl 24 Oct 2024 17:02:23 -0000 1.27
@@ -646,7 +646,7 @@
set id [$tree id]
set options [list "enableLinks: true"]
# see list of possible icons: https://github.com/jonmiles/bootstrap-treeview
- if {[::xowiki::CSS toolkit] eq "bootstrap5"} {
+ if {[::template::CSS toolkit] eq "bootstrap5"} {
lappend options \
"expandIcon: 'glyphicon glyphicon-none'" \
"collapseIcon: 'bi bi-folder2-open'"
Index: openacs-4/packages/xowiki/tcl/xowiki-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-procs.tcl,v
diff -u -r1.547 -r1.548
--- openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 23 Oct 2024 12:14:49 -0000 1.547
+++ openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 24 Oct 2024 17:02:23 -0000 1.548
@@ -3910,7 +3910,7 @@
#
set name ""
if {$margin_form} {
- set css [::xowiki::CSS class margin-form]
+ set css [::template::CSS class margin-form]
if {$css ne ""} {
set name "$css "
}
@@ -4291,7 +4291,7 @@
if {$root ne ""} {
:dom_disable_input_fields -with_submit $with_submit $root
set form [lindex [$root selectNodes //form] 0]
- set marginForm [::xowiki::CSS class "margin-form"]
+ set marginForm [::template::CSS class "margin-form"]
if {$marginForm ne ""} {
Form add_dom_attribute_value $form class $marginForm
}
Index: openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl,v
diff -u -r1.371 -r1.372
--- openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl 11 Sep 2024 06:15:56 -0000 1.371
+++ openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl 24 Oct 2024 17:02:23 -0000 1.372
@@ -641,7 +641,7 @@
if {$compare_id == 0} {
return ""
}
- ::xo::Page requireCSS urn:ad:css:xowiki-[::xowiki::CSS toolkit]
+ ::xo::Page requireCSS urn:ad:css:xowiki-[::template::CSS toolkit]
set my_page [::xowiki::Package instantiate_page_from_id -revision_id ${:revision_id}]
@@ -2169,7 +2169,7 @@
# requireCSS are typically loaded later than those from the theme.
template::head::add_css \
- -href urn:ad:css:xowiki-[::xowiki::CSS toolkit] \
+ -href urn:ad:css:xowiki-[::template::CSS toolkit] \
-order 0
#
Index: openacs-4/packages/xowiki/tcl/test/xowiki-admin-tests-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/test/xowiki-admin-tests-procs.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/xowiki/tcl/test/xowiki-admin-tests-procs.tcl 9 Oct 2024 07:18:18 -0000 1.3
+++ openacs-4/packages/xowiki/tcl/test/xowiki-admin-tests-procs.tcl 24 Oct 2024 17:02:23 -0000 1.4
@@ -118,7 +118,7 @@
"::xo::db::sql::content_folder proc new"
"::xo::tdom::AttributeManager instproc get_local_attributes"
"::xotcl::Object instproc unset"
- "::xowiki::CSS toolkit"
+ "::template::CSS toolkit"
"::xowiki::File instproc www-download"
"::xowiki::FormPage instproc is_folder_page"
"::xowiki::FormPage instproc property"
Index: openacs-4/packages/xowiki/www/admin/index.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/admin/index.tcl,v
diff -u -r1.34 -r1.35
--- openacs-4/packages/xowiki/www/admin/index.tcl 11 Sep 2024 06:15:56 -0000 1.34
+++ openacs-4/packages/xowiki/www/admin/index.tcl 24 Oct 2024 17:02:23 -0000 1.35
@@ -14,7 +14,7 @@
set pretty_plural [$object_type set pretty_plural]
set title [_ xowiki.admin_all_title]
-set CSSToolkit [::xowiki::CSS toolkit]
+set CSSToolkit [::template::CSS toolkit]
if {$CSSToolkit eq "bootstrap"} {
template::head::add_css -href urn:ad:css:bootstrap3
}
Index: openacs-4/packages/xowiki/www/admin/list.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/admin/list.tcl,v
diff -u -r1.41 -r1.42
--- openacs-4/packages/xowiki/www/admin/list.tcl 11 Sep 2024 06:15:56 -0000 1.41
+++ openacs-4/packages/xowiki/www/admin/list.tcl 24 Oct 2024 17:02:23 -0000 1.42
@@ -34,7 +34,7 @@
set with_children true
}
-set CSSToolkit [::xowiki::CSS toolkit]
+set CSSToolkit [::template::CSS toolkit]
if {$CSSToolkit eq "bootstrap"} {
template::head::add_css -href urn:ad:css:bootstrap3
}