New sidebar JavaScript logic

This implements the JS logic as discussed in our meeting. A sidebar can
now contain virtually any wiki syntax. (currently hardcoded) H2 elements
will toggle all their following content which is wrapped in a wrapper
div.

This is currently implemented on top of the old JavaScript which should
be removed.

The toggle element should be made configurable.

We probably want to reuse some of the toggle logic for the user tools.
This commit is contained in:
Andreas Gohr 2017-02-13 15:17:18 +01:00
commit 9d8dba1489
2 changed files with 60 additions and 0 deletions

View file

@ -33,3 +33,6 @@ var $_LANG = {};
/* DOKUWIKI:include js/sidebar-menu.js */
/* DOKUWIKI:include js/meta-box.js */
/* DOKUWIKI:include js/sidebar.js */