climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1492484 - in /incubator/climate/trunk/rcmet/src/main/ui/app: index.html js/services.js js/services/RegionSelectParams.js
Date Wed, 12 Jun 2013 23:18:36 GMT
Author: joyce
Date: Wed Jun 12 23:18:36 2013
New Revision: 1492484

URL: http://svn.apache.org/r1492484
Log:
CLIMATE-99 progress - Moves RegionSelectParams to new file

Added:
    incubator/climate/trunk/rcmet/src/main/ui/app/js/services/RegionSelectParams.js
Modified:
    incubator/climate/trunk/rcmet/src/main/ui/app/index.html
    incubator/climate/trunk/rcmet/src/main/ui/app/js/services.js

Modified: incubator/climate/trunk/rcmet/src/main/ui/app/index.html
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/index.html?rev=1492484&r1=1492483&r2=1492484&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/index.html (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/index.html Wed Jun 12 23:18:36 2013
@@ -230,6 +230,7 @@
   <script src="js/app.js"></script>
   <script src="js/services.js"></script>
   <script src="js/services/SelectedDatasetInformation.js"></script>
+  <script src="js/services/RegionSelectParams.js"></script>
   <script src="js/controllers/WorldMapCtrl.js"></script>
   <script src="js/controllers/ParameterSelectCtrl.js"></script>
   <script src="js/controllers/DatasetDisplayCtrl.js"></script>

Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/services.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/services.js?rev=1492484&r1=1492483&r2=1492484&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/services.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/services.js Wed Jun 12 23:18:36 2013
@@ -5,25 +5,7 @@
 
 // Demonstrate how to register services
 // In this case it is a simple value service.
-angular.module('rcmes').
-	service('regionSelectParams', function() {
-		var parameters = {
-			"areValid" : true,
-			"latMin"   : "",
-			"latMax"   : "",
-			"lonMin"   : "",
-			"lonMax"   : "",
-			"start"    : "",
-			"end"      : "",
-		};
-
-		return {
-			getParameters: function() {
-				return parameters;
-			},
-		};
-    }).
-	service('evaluationSettings', function() {
+angular.module('rcmes').service('evaluationSettings', function() {
 		var settings = {
 			'metrics': [ 
 				{'name': 'bias', 'select': true},

Added: incubator/climate/trunk/rcmet/src/main/ui/app/js/services/RegionSelectParams.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/services/RegionSelectParams.js?rev=1492484&view=auto
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/services/RegionSelectParams.js (added)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/services/RegionSelectParams.js Wed Jun
12 23:18:36 2013
@@ -0,0 +1,35 @@
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements.See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License.You may obtain a copy of the License at
+// 
+// http://www.apache.org/licenses/LICENSE-2.0
+// 
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+// RegionSelectParams gives controllers access to the user selected evaluation region. 
+angular.module('rcmes').service('regionSelectParams', function() {
+	var parameters = {
+		"areValid" : true,
+		"latMin"   : "",
+		"latMax"   : "",
+		"lonMin"   : "",
+		"lonMax"   : "",
+		"start"    : "",
+		"end"      : "",
+	};
+
+	return {
+		getParameters: function() {
+			return parameters;
+		},
+	};
+});



Mime
View raw message