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 */ 7jQuery(function () { 8 var $panel = jQuery('div.qc-output').hide(); 9 10 // load summary 11 jQuery('.page-attributes .plugin_qc a').load( 12 DOKU_BASE + 'lib/exe/ajax.php', 13 { 14 call: 'plugin_qc_short', 15 id: JSINFO['id'] 16 }, 17 function () { 18 jQuery(this).find('span span').addClass('num'); 19 } 20 ).click(function (e) { 21 e.preventDefault(); 22 23 if ($panel.html() == '') { 24 // load output 25 $panel.load( 26 DOKU_BASE + 'lib/exe/ajax.php', 27 { 28 call: 'plugin_qc_long', 29 id: JSINFO['id'] 30 }, 31 function () { 32 $panel.dw_show(); 33 } 34 ); 35 } else { 36 $panel.dw_toggle(); 37 } 38 }); 39 40}); 41