1/** 2 * prevents Uncaught TypeError in detail template if bookcreator plug-in is installed 3 * 4 */ 5(function($) { 6 7 8 var debugBookCreatorOnDetailTemplate = function(){ 9 10 var $detail = $('#dokuwiki__detail'); 11 if (!$detail.length) return; 12 13 if(JSINFO.bookcreator === undefined) { 14 JSINFO.bookcreator = {}; 15 JSINFO.bookcreator.areToolsVisible = false; 16 } 17 }; 18 19 $(function(){ 20 debugBookCreatorOnDetailTemplate(); 21 }); 22 23 24})(jQuery); 25