Dokuwiki - Jquery

> DokuWiki

Table of Contents

1 - About

Javascript - JQuery presence in Dokuwiki.

2 - Structure

  • versions are defined in lib/scripts/jquery/versions
inc/confutils.php
// getCdnUrls
$event = new Doku_Event('CONFUTIL_CDN_SELECT', $data);
  • lib\exe\jquery.php - concatenating the different files and handling conditional and gzipped requests
  • location: lib/scripts/jquery
  • lib/exe/js.php - create one big js file

The event JS_SCRIPT_LIST lets you suppress Js file

lib/exe/js.php
 // Let plugins decide to either put more scripts here or to remove some
trigger_event('JS_SCRIPT_LIST', $files);
  • Event when loading header in function tpl_metaheaders
inc/template.php
trigger_event('TPL_METAHEADER_OUTPUT', $head, '_tpl_metaheaders_action', true);
Advertising
dokuwiki/jquery.txt · Last modified: 2019/02/22 15:07 by gerardnico