Fixed appearance on mobile

This commit is contained in:
Marcin Kurczewski 2013-11-19 20:20:16 +01:00
parent e336d04347
commit b2fdbb914e

View file

@ -133,7 +133,6 @@ function processSidebar()
$('#sidebar').insertBefore($('#inner-content'));
$('#sidebar .unit').removeClass('bottom-unit').addClass('left-unit');
}
$('body').data('last-width', $('body').width());
}
$(function()
{
@ -141,6 +140,8 @@ $(function()
{
if ($('body').width() == $('body').data('last-width'))
return;
$('body').data('last-width', $('body').width());
$('body').trigger('dom-update');
});
$('body').bind('dom-update', processSidebar);
});