Index: openacs-4/packages/xowiki/resources/templates/oacs-view.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/resources/templates/oacs-view.adp,v diff -u -r1.1.2.3 -r1.1.2.4 --- openacs-4/packages/xowiki/resources/templates/oacs-view.adp 10 Sep 2016 10:11:41 -0000 1.1.2.3 +++ openacs-4/packages/xowiki/resources/templates/oacs-view.adp 10 Sep 2016 11:29:13 -0000 1.1.2.4 @@ -1,4 +1,4 @@ - + @context;literal@ @item_id;literal@ @@ -14,7 +14,8 @@ <% template::add_body_script -script { - document.getElementById('wiki-menu-do-search-control').addEventListener('click', function () { + document.getElementById('wiki-menu-do-search-control').addEventListener('click', function (event) { + event.preventDefault(); document.getElementById('do_search').style.display = 'inline'; document.getElementById('do_search_q').focus(); return false; Index: openacs-4/packages/xowiki/resources/templates/oacs-view2.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/resources/templates/oacs-view2.adp,v diff -u -r1.1.2.3 -r1.1.2.4 --- openacs-4/packages/xowiki/resources/templates/oacs-view2.adp 10 Sep 2016 10:11:41 -0000 1.1.2.3 +++ openacs-4/packages/xowiki/resources/templates/oacs-view2.adp 10 Sep 2016 11:29:13 -0000 1.1.2.4 @@ -1,4 +1,4 @@ - + @context;literal@ @item_id;literal@ @@ -15,7 +15,8 @@ <% template::add_body_script -script { - document.getElementById('wiki-menu-do-search-control').addEventListener('click', function () { + document.getElementById('wiki-menu-do-search-control').addEventListener('click', function (event) { + event.preventDefault(); document.getElementById('do_search').style.display = 'inline'; document.getElementById('do_search_q').focus(); return false; Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/packages/xowiki/resources/templates/oacs-view3-bootstrap3.adp'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/packages/xowiki/resources/templates/oacs-view3.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/resources/templates/oacs-view3.adp,v diff -u -r1.1.2.3 -r1.1.2.4 --- openacs-4/packages/xowiki/resources/templates/oacs-view3.adp 10 Sep 2016 10:11:41 -0000 1.1.2.3 +++ openacs-4/packages/xowiki/resources/templates/oacs-view3.adp 10 Sep 2016 11:29:13 -0000 1.1.2.4 @@ -1,4 +1,4 @@ - + @context;literal@ @item_id;literal@ @@ -20,7 +20,8 @@ <% template::add_body_script -script { - document.getElementById('wiki-menu-do-search-control').addEventListener('click', function () { + document.getElementById('wiki-menu-do-search-control').addEventListener('click', function (event) { + event.preventDefault(); document.getElementById('do_search').style.display = 'inline'; document.getElementById('do_search_q').focus(); return false; Index: openacs-4/packages/xowiki/resources/templates/view-book-no-ajax.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/resources/templates/view-book-no-ajax.adp,v diff -u -r1.1.2.3 -r1.1.2.4 --- openacs-4/packages/xowiki/resources/templates/view-book-no-ajax.adp 10 Sep 2016 10:11:41 -0000 1.1.2.3 +++ openacs-4/packages/xowiki/resources/templates/view-book-no-ajax.adp 10 Sep 2016 11:29:13 -0000 1.1.2.4 @@ -1,4 +1,4 @@ - + @context;literal@ @item_id;literal@ Index: openacs-4/packages/xowiki/resources/templates/view-book.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/resources/templates/view-book.adp,v diff -u -r1.1.2.3 -r1.1.2.4 --- openacs-4/packages/xowiki/resources/templates/view-book.adp 10 Sep 2016 10:11:41 -0000 1.1.2.3 +++ openacs-4/packages/xowiki/resources/templates/view-book.adp 10 Sep 2016 11:29:13 -0000 1.1.2.4 @@ -1,4 +1,4 @@ - + @context;literal@ @item_id;literal@ Index: openacs-4/packages/xowiki/resources/templates/view-default.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/resources/templates/view-default.adp,v diff -u -r1.1.2.3 -r1.1.2.4 --- openacs-4/packages/xowiki/resources/templates/view-default.adp 10 Sep 2016 10:11:41 -0000 1.1.2.3 +++ openacs-4/packages/xowiki/resources/templates/view-default.adp 10 Sep 2016 11:29:13 -0000 1.1.2.4 @@ -1,4 +1,4 @@ - + @context;literal@ @item_id;literal@ @@ -11,7 +11,8 @@ <% template::add_body_script -script { - document.getElementById('wiki-menu-do-search-control').addEventListener('click', function () { + document.getElementById('wiki-menu-do-search-control').addEventListener('click', function (event) { + event.preventDefault(); document.getElementById('do_search').style.display = 'inline'; document.getElementById('do_search_q').focus(); return false; Index: openacs-4/packages/xowiki/resources/templates/view-links.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/resources/templates/view-links.adp,v diff -u -r1.1.2.3 -r1.1.2.4 --- openacs-4/packages/xowiki/resources/templates/view-links.adp 10 Sep 2016 10:11:41 -0000 1.1.2.3 +++ openacs-4/packages/xowiki/resources/templates/view-links.adp 10 Sep 2016 11:29:13 -0000 1.1.2.4 @@ -1,11 +1,12 @@ - +
<% template::add_body_script -script { - document.getElementById('wiki-menu-do-search-control').addEventListener('click', function () { + document.getElementById('wiki-menu-do-search-control').addEventListener('click', function (event) { + event.preventDefault(); document.getElementById('do_search').style.display = 'inline'; document.getElementById('do_search_q').focus(); return false; Index: openacs-4/packages/xowiki/resources/templates/view-plain.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/resources/templates/view-plain.adp,v diff -u -r1.1.2.3 -r1.1.2.4 --- openacs-4/packages/xowiki/resources/templates/view-plain.adp 10 Sep 2016 10:11:41 -0000 1.1.2.3 +++ openacs-4/packages/xowiki/resources/templates/view-plain.adp 10 Sep 2016 11:29:13 -0000 1.1.2.4 @@ -1,4 +1,4 @@ - +
Index: openacs-4/packages/xowiki/tcl/adp-generator-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/adp-generator-procs.tcl,v diff -u -r1.45.2.3 -r1.45.2.4 --- openacs-4/packages/xowiki/tcl/adp-generator-procs.tcl 10 Sep 2016 10:11:41 -0000 1.45.2.3 +++ openacs-4/packages/xowiki/tcl/adp-generator-procs.tcl 10 Sep 2016 11:29:13 -0000 1.45.2.4 @@ -36,7 +36,8 @@ return { <% template::add_body_script -script { - document.getElementById('wiki-menu-do-search-control').addEventListener('click', function () { + document.getElementById('wiki-menu-do-search-control').addEventListener('click', function (event) { + event.preventDefault(); document.getElementById('do_search').style.display = 'inline'; document.getElementById('do_search_q').focus(); return false; @@ -275,7 +276,89 @@ }] } + + # oacs-view3-bootstrap3 + # + # similar to oacs view3, but based on bootstrap + # + ADP_Generator create oacs-view3-bootstrap3 -master 1 -footer 0 -wikicmds 1 \ + -extra_header_stuff { + + + + + } \ + -proc before_render {page} { + ::xo::cc set_parameter weblog_page weblog-portlet + } \ + -proc content_part {} { + set open_page {-open_page [list @name@]} + return [subst -novariables -nobackslashes {\ +
+ +
+ @top_includelets;noquote@ +
@body.menubarHTML;noquote@
+

@body.title@ (@page_context@)

+

@body.title@

+ +
@folderhtml;noquote@
+
@content;noquote@
+
+ @content;noquote@ +
+ +
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ + Contributors +
+
+ +
+
+ +
+
+
+
+
+
+
+ @footer;noquote@ +
+
+ }] + } + + + #################################################################################### # # view-book Index: openacs-4/packages/xowiki/tcl/includelet-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/includelet-procs.tcl,v diff -u -r1.200.2.13 -r1.200.2.14 --- openacs-4/packages/xowiki/tcl/includelet-procs.tcl 10 Sep 2016 10:11:41 -0000 1.200.2.13 +++ openacs-4/packages/xowiki/tcl/includelet-procs.tcl 10 Sep 2016 11:29:13 -0000 1.200.2.14 @@ -1421,20 +1421,22 @@ } set content [subst { #xowiki.your_tags_label#: $tags_with_links - (#xowiki.edit_link#, - #xowiki.popular_tags_link#) + (#xowiki.edit_link#, + #xowiki.popular_tags_link#)
}] template::add_body_script -script [subst { - document.getElementById('[my id]-edit-tags-control').addEventListener('click', function () { + document.getElementById('[my id]-edit-tags-control').addEventListener('click', function (event) { + event.preventDefault(); document.getElementById("[my id]-edit_tags").style.display="block"; return false; }); - document.getElementById('[my id]-popular-tags-control').addEventListener('click', function () { + document.getElementById('[my id]-popular-tags-control').addEventListener('click', function (event) { + event.preventDefault(); get_popular_tags("[ns_quotehtml $popular_tags_link]","[my id]"); return false; });