climate-commits mailing list archives

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

URL: http://svn.apache.org/r1492494
Log:
Resolves CLIMATE-102 - Move services to new module.

- Adds new component to the App object called Services. All new services
  are added to this component.
- Adds services module as a dependency to the primary application
  module.

Modified:
    incubator/climate/trunk/rcmet/src/main/ui/app/js/app.js
    incubator/climate/trunk/rcmet/src/main/ui/app/js/services/EvaluationSettings.js
    incubator/climate/trunk/rcmet/src/main/ui/app/js/services/RegionSelectParams.js
    incubator/climate/trunk/rcmet/src/main/ui/app/js/services/SelectedDatasetInformation.js

Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/app.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/app.js?rev=1492494&r1=1492493&r2=1492494&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/app.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/app.js Wed Jun 12 23:20:05 2013
@@ -4,7 +4,9 @@
 // names isolated to a single location as well as simplifying future init code.
 var App =  App || {};
 
-angular.module('rcmes', ['ui.date']).
+App.Services = angular.module('rcmes.services', []);
+
+angular.module('rcmes', ['rcmes.services', 'ui.date']).
 	config(['$routeProvider', function($routeProvider) {
 		$routeProvider.
 			when('/obs', {templateUrl: 'partials/selectObservation.html',   controller: ObservationSelectCtrl}).

Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/services/EvaluationSettings.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/services/EvaluationSettings.js?rev=1492494&r1=1492493&r2=1492494&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/services/EvaluationSettings.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/services/EvaluationSettings.js Wed Jun
12 23:20:05 2013
@@ -16,7 +16,7 @@
 //
 
 // EvaluationSettings gives controllers access to the user's selected evaluation settings.
-angular.module('rcmes').service('evaluationSettings', function() {
+App.Services.service('evaluationSettings', function() {
 	var settings = {
 		'metrics': [ 
 			{'name': 'bias', 'select': true},

Modified: 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=1492494&r1=1492493&r2=1492494&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/services/RegionSelectParams.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/services/RegionSelectParams.js Wed Jun
12 23:20:05 2013
@@ -16,7 +16,7 @@
 //
 
 // RegionSelectParams gives controllers access to the user selected evaluation region. 
-angular.module('rcmes').service('regionSelectParams', function() {
+App.Services.service('regionSelectParams', function() {
 	var parameters = {
 		"areValid" : true,
 		"latMin"   : "",

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=1492494&r1=1492493&r2=1492494&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
Wed Jun 12 23:20:05 2013
@@ -17,7 +17,7 @@
 
 // Service for giving controllers access to the information on datasets that 
 // the user has selected for evaluation.
-angular.module('rcmes').service('selectedDatasetInformation', function() {
+App.Services.service('selectedDatasetInformation', function() {
 	var datasets = [];
 
 	return {



Mime
View raw message