Admin dashboard portlet width. 1280px over and under.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9551 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2011-10-11 01:51:37 +00:00
parent 78613c0ce1
commit 7206aff619
2 changed files with 13 additions and 1 deletions

View file

@ -87,7 +87,16 @@ jQuery(function($){
});
// Display the dashboard in two column
$('.dashboard>.section>.portlet:odd').after('<br style="clear:both" />');
$(window).resize(function(){
if($(document).width() < 1280){
$('.dashboard>.section>br').remove();
$('.dashboard>.section>.portlet:odd').after('<br style="clear:both" />');
} else {
$('.dashboard>.section>br').remove();
$('.dashboard>.section>.portlet:eq(2),.dashboard>.section>.portlet:eq(5)').after('<br style="clear:both" />');
}
});
$(window).resize();
// Popup list : 'Move to site' and 'Site map'