← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11685: PT, wrong namespace fixes

 

------------------------------------------------------------
revno: 11685
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-08-16 21:48:48 +0200
message:
  PT, wrong namespace fixes
modified:
  dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/app.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-pivot/src/main/webapp/dhis-web-pivot/app/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/app.js	2013-08-16 14:44:33 +0000
+++ dhis-2/dhis-web/dhis-web-pivot/src/main/webapp/dhis-web-pivot/app/scripts/app.js	2013-08-16 19:48:48 +0000
@@ -3607,17 +3607,16 @@
 			items: tool
 		});
 		
-
 		organisationUnit = {
             xtype: 'panel',
-            title: '<div class="dv-panel-title-organisationunit">' + DV.i18n.organisation_units + '</div>',
+            title: '<div class="dv-panel-title-organisationunit">' + PT.i18n.organisation_units + '</div>',
             bodyStyle: 'padding:2px',
             hideCollapseTool: true,
             collapsed: false,
             getDimension: function() {
                 var r = treePanel.getSelectionModel().getSelection(),
                     config = {
-                        dimension: dv.conf.finals.dimension.organisationUnit.objectName,
+                        dimension: pt.conf.finals.dimension.organisationUnit.objectName,
                         items: []
                     };
 
@@ -3686,10 +3685,10 @@
                 return config.items.length ? config : null;
             },
             onExpand: function() {
-                var h = dv.viewport.westRegion.hasScrollbar ?
-                    dv.conf.layout.west_scrollbarheight_accordion_organisationunit : dv.conf.layout.west_maxheight_accordion_organisationunit;
-                dv.util.dimension.panel.setHeight(h);
-                treePanel.setHeight(this.getHeight() - dv.conf.layout.west_fill_accordion_organisationunit);
+                var h = pt.viewport.westRegion.hasScrollbar ?
+                    pt.conf.layout.west_scrollbarheight_accordion_organisationunit : pt.conf.layout.west_maxheight_accordion_organisationunit;
+                pt.util.dimension.panel.setHeight(h);
+                treePanel.setHeight(this.getHeight() - pt.conf.layout.west_fill_accordion_organisationunit);
             },
             items: [
                 {
@@ -3699,7 +3698,7 @@
                     items: [
                         toolPanel,
                         {
-                            width: dv.conf.layout.west_fieldset_width - dv.conf.layout.west_width_padding - 38,
+                            width: pt.conf.layout.west_fieldset_width - pt.conf.layout.west_width_padding - 38,
                             layout: 'column',
                             bodyStyle: 'border:0 none',
                             items: [
@@ -3714,7 +3713,7 @@
             ],
             listeners: {
                 added: function() {
-                    dv.cmp.dimension.panels.push(this);
+                    pt.cmp.dimension.panels.push(this);
                 },
                 expand: function(p) {
                     p.onExpand();