Fixed appearance on mobile
This commit is contained in:
parent
e336d04347
commit
b2fdbb914e
1 changed files with 2 additions and 1 deletions
|
@ -133,7 +133,6 @@ function processSidebar()
|
||||||
$('#sidebar').insertBefore($('#inner-content'));
|
$('#sidebar').insertBefore($('#inner-content'));
|
||||||
$('#sidebar .unit').removeClass('bottom-unit').addClass('left-unit');
|
$('#sidebar .unit').removeClass('bottom-unit').addClass('left-unit');
|
||||||
}
|
}
|
||||||
$('body').data('last-width', $('body').width());
|
|
||||||
}
|
}
|
||||||
$(function()
|
$(function()
|
||||||
{
|
{
|
||||||
|
@ -141,6 +140,8 @@ $(function()
|
||||||
{
|
{
|
||||||
if ($('body').width() == $('body').data('last-width'))
|
if ($('body').width() == $('body').data('last-width'))
|
||||||
return;
|
return;
|
||||||
|
$('body').data('last-width', $('body').width());
|
||||||
|
$('body').trigger('dom-update');
|
||||||
});
|
});
|
||||||
$('body').bind('dom-update', processSidebar);
|
$('body').bind('dom-update', processSidebar);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue