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.
 
 
 
 
 

28 lines
583 B

  1. /**
  2. * prevents Uncaught TypeError in detail template if folded plug-in is installed
  3. *
  4. * @author Jana Deutschlaender <deutschlaender@cosmocode.de>
  5. *
  6. */
  7. (function($) {
  8. var debugFoldedOnDetailTemplate = function(){
  9. var $detail = $('#dokuwiki__detail');
  10. if (!$detail.length) return;
  11. if(JSINFO.plugin_folded === undefined) {
  12. JSINFO.plugin_folded = {};
  13. JSINFO.plugin_folded.reveal = '';
  14. JSINFO.plugin_folded.hide = '';
  15. }
  16. };
  17. $(function(){
  18. debugFoldedOnDetailTemplate();
  19. });
  20. })(jQuery);