Permalink
Browse files

Fixed unexpected behavior for Sidebar in WebKit mobile browser (thank…

…s to @lattekun on issue #103 and others people in DokuWiki.org)
  • Loading branch information...
LotarProject committed Jan 17, 2016
1 parent 3842e1f commit fba2fabb2e414fc899ead6c9bf6f2bca1d403d7c
Showing with 5 additions and 3 deletions.
  1. +5 −3 script.js
@@ -26,9 +26,11 @@ jQuery(document).ready(function() {
if ($screen_mode.find('.visible-xs').is(':visible')) {
$dw_aside.find('.dw-sidebar-content').addClass('panel panel-default');
$dw_aside.find('.dw-sidebar-title').addClass('panel-heading');
$dw_aside.find('.dw-sidebar-body').addClass('panel-body').removeClass('in');
if (! $dw_aside.find('.dw-sidebar-content').hasClass('panel')) {
$dw_aside.find('.dw-sidebar-content').addClass('panel panel-default');
$dw_aside.find('.dw-sidebar-title').addClass('panel-heading');
$dw_aside.find('.dw-sidebar-body').addClass('panel-body').removeClass('in');
}
} else {

0 comments on commit fba2fab

Please sign in to comment.