
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.
38 lines
778 B
JavaScript
Executable file
38 lines
778 B
JavaScript
Executable file
var $_LANG = {};
|
|
|
|
/* DOKUWIKI:include js/base/helper.js */
|
|
/* DOKUWIKI:include js/base/spc.js */
|
|
|
|
( function( $, spc, lang ) {
|
|
|
|
var setLang = function(){
|
|
try{
|
|
if(lang==="de"){
|
|
/* DOKUWIKI:include lang/de/lang.js */
|
|
} else if(lang==="en"){
|
|
/* DOKUWIKI:include lang/en/lang.js */
|
|
} else{
|
|
/* default */
|
|
/* DOKUWIKI:include lang/de/lang.js */
|
|
}
|
|
|
|
$_LANG = $lang;
|
|
|
|
}catch(err){
|
|
}
|
|
};
|
|
|
|
$(function(){
|
|
setLang();
|
|
});
|
|
|
|
|
|
} )( jQuery, spc, wikiLang );
|
|
|
|
/* DOKUWIKI:include js/plugins/do_tasks.js */
|
|
|
|
/* DOKUWIKI:include js/sidebar-menu.js */
|
|
/* DOKUWIKI:include js/meta-box.js */
|
|
|
|
|
|
/* DOKUWIKI:include js/sidebar.js */
|