You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

41 lines
1.0 KiB

  1. /**
  2. * Add custom QC functionality instead of using the plugin's mechanism
  3. *
  4. * @author Andreas Gohr <gohr@cosmocode.de>
  5. * @author Jana Deutschlaender <deutschlaender@cosmocode.de>
  6. */
  7. jQuery(function () {
  8. var $panel = jQuery('div.qc-output').hide();
  9. // load summary
  10. jQuery('.page-attributes .plugin_qc a').load(
  11. DOKU_BASE + 'lib/exe/ajax.php',
  12. {
  13. call: 'plugin_qc_short',
  14. id: JSINFO['id']
  15. },
  16. function () {
  17. jQuery(this).find('span span').addClass('num');
  18. }
  19. ).click(function (e) {
  20. e.preventDefault();
  21. if ($panel.html() == '') {
  22. // load output
  23. $panel.load(
  24. DOKU_BASE + 'lib/exe/ajax.php',
  25. {
  26. call: 'plugin_qc_long',
  27. id: JSINFO['id']
  28. },
  29. function () {
  30. $panel.dw_show();
  31. }
  32. );
  33. } else {
  34. $panel.dw_toggle();
  35. }
  36. });
  37. });