24 lines
496 B
JavaScript
24 lines
496 B
JavaScript
/**
|
|
* prevents Uncaught TypeError in detail template if bookcreator plug-in is installed
|
|
*
|
|
*/
|
|
(function($) {
|
|
|
|
|
|
var debugBookCreatorOnDetailTemplate = function(){
|
|
|
|
var $detail = $('#dokuwiki__detail');
|
|
if (!$detail.length) return;
|
|
|
|
if(JSINFO.bookcreator === undefined) {
|
|
JSINFO.bookcreator = {};
|
|
JSINFO.bookcreator.areToolsVisible = false;
|
|
}
|
|
};
|
|
|
|
$(function(){
|
|
debugBookCreatorOnDetailTemplate();
|
|
});
|
|
|
|
|
|
})(jQuery);
|