dokuwiki-template-sprintdoc.../js/plugins/folded.js
Jana Deutschländer 4e86a8f0c2 SPR-930: pseudo state for breadcrumb on detail template
SPR-814: prevent Uncaught TypeErrors of JSINFO in detail template
2017-04-20 12:50:16 +02:00

25 lines
519 B
JavaScript

/**
* prevents Uncaught TypeError in detail template if folded plug-in is installed
*
*/
(function($) {
var debugFoldedOnDetailTemplate = function(){
var $detail = $('#dokuwiki__detail');
if (!$detail.length) return;
if(JSINFO.plugin_folded === undefined) {
JSINFO.plugin_folded = {};
JSINFO.plugin_folded.reveal = '';
JSINFO.plugin_folded.hide = '';
}
};
$(function(){
debugFoldedOnDetailTemplate();
});
})(jQuery);