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.
 
 
 
 
 

27 lines
560 B

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