$i18n.getString( "no_page_specified" )
#else=== removed file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/green/dom.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/green/dom.js 2012-10-12 16:21:05 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/green/dom.js 1970-01-01 00:00:00 +0000 @@ -1,6 +0,0 @@ - -// Called from main/Leftbar -function setMainPageNormal() -{ - document.getElementById( 'mainPage' ).style.marginLeft = '270px'; -} === removed file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/india/dom.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/india/dom.js 2012-10-12 16:21:05 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/india/dom.js 1970-01-01 00:00:00 +0000 @@ -1,6 +0,0 @@ - -// Called from main/Leftbar -function setMainPageNormal() -{ - document.getElementById( 'mainPage' ).style.marginLeft = '300px'; -} === removed file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/light_blue/dom.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/light_blue/dom.js 2012-10-12 16:21:05 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/light_blue/dom.js 1970-01-01 00:00:00 +0000 @@ -1,6 +0,0 @@ - -// Called from main/Leftbar -function setMainPageNormal() -{ - document.getElementById( 'mainPage' ).style.marginLeft = '270px'; -} === removed file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/vietnam/dom.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/vietnam/dom.js 2012-10-12 16:21:05 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/vietnam/dom.js 1970-01-01 00:00:00 +0000 @@ -1,6 +0,0 @@ - -// Called from main/Leftbar -function setMainPageNormal() -{ - document.getElementById( 'mainPage' ).style.marginLeft = '270px'; -} === 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 2012-10-11 16:41:59 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.js 2012-10-12 16:37:02 +0000 @@ -168,33 +168,28 @@ { this.showAnimated = function() { - setMenuVisible(); - setMainPageNormal( '270px' ); // Delegated to dom.js for each style - $( 'div#leftBar' ).show( 'fast' ); - $( 'span#showLeftBar' ).hide( 'fast' ); + setMenuVisible(); + $( '#mainPage' ).removeAttr( 'style' ); + $( '#leftBar' ).show( 'fast' ); + $( '#showLeftBar' ).hide( 'fast' ); }; this.hideAnimated = function() { setMenuHidden(); - setMainPageFullscreen( '20px' ); - $( 'div#leftBar' ).hide( 'fast' ); - $( 'span#showLeftBar' ).show( 'fast' ); + $( '#mainPage' ).attr( 'style', 'margin-left:20px' ); + $( '#leftBar' ).hide( 'fast' ); + $( '#showLeftBar' ).show( 'fast' ); }; this.hide = function() { setMenuHidden(); - setMainPageFullscreen( '20px' ); + $( '#mainPage' ).attr( 'style', 'margin-left:20px' ); document.getElementById( 'leftBar' ).style.display = 'none'; document.getElementById( 'showLeftBar' ).style.display = 'block'; }; - function setMainPageFullscreen() - { - document.getElementById( 'mainPage' ).style.marginLeft = '20px'; - } - function setMenuVisible() { $.get( '../dhis-web-commons/menu/setMenuVisible.action' ); @@ -207,6 +202,6 @@ this.openHelpForm = function( id ) { - window.open ("../dhis-web-commons/help/viewDynamicHelp.action?id=" + id,"Help", 'width=800,height=600,scrollbars=yes'); - }; + window.open( "../dhis-web-commons/help/viewDynamicHelp.action?id=" + id, "Help", "width=800,height=600,scrollbars=yes" ); + } } === modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.vm' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.vm 2012-10-11 16:23:03 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/main.vm 2012-10-12 16:37:02 +0000 @@ -45,7 +45,6 @@ - #foreach( $javascript in $javascripts ) @@ -150,7 +149,7 @@
-$i18n.getString( "no_page_specified" )
#else