Skip to content

Commit

Permalink
Fixed unexpected behavior for Sidebar in WebKit mobile browser (thank…
Browse files Browse the repository at this point in the history
…s to @lattekun on issue #103 and others people in DokuWiki.org)
  • Loading branch information
giterlizzi committed Jan 17, 2016
1 parent 3842e1f commit fba2fab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions script.js
Expand Up @@ -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 {

Expand Down

0 comments on commit fba2fab

Please sign in to comment.