dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #04347
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1432: Minor fix
------------------------------------------------------------
revno: 1432
committer: Lars Helge Oeverland <larshelge@xxxxxxxxx>
branch nick: trunk
timestamp: Mon 2010-02-15 15:49:54 +0100
message:
Minor fix
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.js 2009-09-07 14:32:45 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.js 2010-02-15 14:49:54 +0000
@@ -1,33 +1,33 @@
-$(document).ready(function()
+$( document ).ready( function()
{
- if($(window).width() <= 800)
+ if( $( window ).width() <= 800 ) // In case of 800 x 600 screens
{
- $('img#menuSeparator1').css('left','400px');
- $('img#menuSeparator2').css('left','490px');
- $('img#menuSeparator3').css('left','580px');
- $('img#menuSeparator4').css('left','670px');
- $('img#menuSeparator5').css('left','750px');
- $('div#menuLink1').css('left','398px');
- $('div#menuLink2').css('left','485px');
- $('div#menuLink3').css('left','580px');
- $('div#menuLink4').css('left','665px');
- $('div#menuDropDown1').css('left','400px');
- $('div#menuDropDown2').css('left','490px');
- $('div#menuDropDown3').css('left','580px');
-
- $('#leftBar').css('width','175px');
- $('#leftBarContents h2').css('margin-right','10px');
- $('#leftBarContents h2').css('margin-left','10px');
- $('#leftBarContents ul').css('margin-left','30px');
- $('#leftBarContents img').css('margin-left','10px');
-
- $('#orgUnitTree').css('width','172px');
-
- $('#mainPage').css('margin-left','200px');
- $('div#orgUnitTree ul').css('margin-left','10px');
+ $( 'img#menuSeparator1').css('left','400px' );
+ $( 'img#menuSeparator2').css('left','490px' );
+ $( 'img#menuSeparator3').css('left','580px' );
+ $( 'img#menuSeparator4').css('left','670px' );
+ $( 'img#menuSeparator5').css('left','750px' );
+ $( 'div#menuLink1').css('left','398px' );
+ $( 'div#menuLink2').css('left','485px' );
+ $( 'div#menuLink3').css('left','580px' );
+ $( 'div#menuLink4').css('left','665px' );
+ $( 'div#menuDropDown1').css('left','400px' );
+ $( 'div#menuDropDown2').css('left','490px' );
+ $( 'div#menuDropDown3').css('left','580px' );
+
+ $( '#leftBar').css('width','175px' );
+ $( '#leftBarContents h2').css('margin-right','10px' );
+ $( '#leftBarContents h2').css('margin-left','10px' );
+ $( '#leftBarContents ul').css('margin-left','30px' );
+ $( '#leftBarContents img').css('margin-left','10px' );
+
+ $( '#orgUnitTree').css('width','172px' );
+
+ $( '#mainPage').css('margin-left','200px' );
+ $( 'div#orgUnitTree ul').css('margin-left','10px' );
}
-});
+} );
var leftBar = new LeftBar();