SPR-930: pseudo state for breadcrumb on detail template
SPR-814: prevent Uncaught TypeErrors of JSINFO in detail template
This commit is contained in:
parent
6db1065031
commit
4e86a8f0c2
7 changed files with 80 additions and 15 deletions
js/plugins
24
js/plugins/bookcreator.js
Normal file
24
js/plugins/bookcreator.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
/**
|
||||
* 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);
|
Loading…
Add table
Add a link
Reference in a new issue