climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1497195 - in /incubator/climate/trunk/rcmet/src/main/ui: app/js/services/SelectedDatasetInformation.js test/unit/services/SelectedDatasetInfomationTest.js
Date Thu, 27 Jun 2013 02:45:41 GMT
Author: joyce
Date: Thu Jun 27 02:45:41 2013
New Revision: 1497195

URL: http://svn.apache.org/r1497195
Log:
CLIMATE-152 progress - Turn off dataset display by default

- Turn dataset overlay off when adding a new dataset.
- Update addDataset test to check for new setting.

Modified:
    incubator/climate/trunk/rcmet/src/main/ui/app/js/services/SelectedDatasetInformation.js
    incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js

Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/services/SelectedDatasetInformation.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/services/SelectedDatasetInformation.js?rev=1497195&r1=1497194&r2=1497195&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/services/SelectedDatasetInformation.js
(original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/services/SelectedDatasetInformation.js
Thu Jun 27 02:45:41 2013
@@ -33,7 +33,7 @@ App.Services.service('selectedDatasetInf
 		addDataset: function(dataset) {
 			// All datasets need a shouldDisplay attribute that is used when rendering
 			// the overlays on the map!
-			dataset.shouldDisplay = true;
+			dataset.shouldDisplay = false;
 			// The regrid attribute indicates which dataset should be used for spatial regridding
 			dataset.regrid = false;
 

Modified: incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js?rev=1497195&r1=1497194&r2=1497195&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js
(original)
+++ incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js
Thu Jun 27 02:45:41 2013
@@ -53,7 +53,7 @@ describe('OCW Services', function() {
 		it('should set the shouldDisplay attribute when adding a dataset', function() {
 			inject(function(selectedDatasetInformation) {
 				selectedDatasetInformation.addDataset({});
-				expect(selectedDatasetInformation.getDatasets()[0].shouldDisplay).toBe(true);
+				expect(selectedDatasetInformation.getDatasets()[0].shouldDisplay).toBe(false);
 			});
 		});
 



Mime
View raw message