dokuwiki-template-bootstrap3 icon indicating copy to clipboard operation
dokuwiki-template-bootstrap3 copied to clipboard

Extlist plugin conflict when using navbar in header

Open trailjeep opened this issue 4 years ago • 0 comments

Description

Plugin Extlist removes the classes nav navbar-nav from the navbar ul breaking the horizontal flow and turning it into a vertical bulleted list.

Steps to reproduce

  1. Use navbar hook in bootstrap3 tpl
  2. Install extlist

Versions

  • [Bootstrap3 Template] latest
  • [DokuWiki] latest
  • [Plugins] extlist

Screenshots or Logs

Sample page or snippet

Solution

/path/to/dokuwiki/lib/tpl/bootstrap3/js/plugins/extlist.js

// Extlist Plugin: fix changes class in header
if (jQuery("#dw__navbar ul.extlist").length){
   jQuery("#dw__navbar ul.extlist").removeClass('extlist').addClass('nav navbar-nav');
}

trailjeep avatar May 14 '20 15:05 trailjeep