You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by jo...@apache.org on 2013/06/13 01:20:14 UTC
svn commit: r1492495 - in /incubator/climate/trunk/rcmet/src/main/ui/app/js:
app.js directives/BootstrapModal.js directives/BootstrapModalOpen.js
directives/LeafletMap.js directives/OnBlur.js
directives/PredictiveFileBrowserInput.js
Author: joyce
Date: Wed Jun 12 23:20:14 2013
New Revision: 1492495
URL: http://svn.apache.org/r1492495
Log:
Resolves CLIMATE-103 - Moves directives over to separate module
- Adds new Directives component to App object.
- Changes all directives initializations to use the new Directives
component.
- Adds new dependency to the primary app module.
Modified:
incubator/climate/trunk/rcmet/src/main/ui/app/js/app.js
incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/BootstrapModal.js
incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/BootstrapModalOpen.js
incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/LeafletMap.js
incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/OnBlur.js
incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/PredictiveFileBrowserInput.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=1492495&r1=1492494&r2=1492495&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:14 2013
@@ -5,8 +5,9 @@
var App = App || {};
App.Services = angular.module('rcmes.services', []);
+App.Directives = angular.module('rcmes.directives', []);
-angular.module('rcmes', ['rcmes.services', 'ui.date']).
+angular.module('rcmes', ['rcmes.services', 'rcmes.directives', '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/directives/BootstrapModal.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/BootstrapModal.js?rev=1492495&r1=1492494&r2=1492495&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/BootstrapModal.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/BootstrapModal.js Wed Jun 12 23:20:14 2013
@@ -16,7 +16,7 @@
//
// Directive for inserting bootstrap modals
-angular.module('rcmes').directive('bootstrapModal', function($timeout) {
+App.Directives.directive('bootstrapModal', function($timeout) {
var link = function(scope, elem, attrs) {
var escapeEvent;
var openModal;
Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/BootstrapModalOpen.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/BootstrapModalOpen.js?rev=1492495&r1=1492494&r2=1492495&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/BootstrapModalOpen.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/BootstrapModalOpen.js Wed Jun 12 23:20:14 2013
@@ -20,7 +20,7 @@
// what features the modal should have. The user can turn off the semi-opaque background
// by having the background attribute set to 'false'. The user can also turn off the
// ability to close the modal with ESC by having the keyboard attribute set to 'false'.
-angular.module('rcmes').directive('bootstrapModalOpen', function() {
+App.Directives.directive('bootstrapModalOpen', function() {
return {
restrict: 'A',
link: function(scope, elem, attrs) {
Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/LeafletMap.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/LeafletMap.js?rev=1492495&r1=1492494&r2=1492495&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/LeafletMap.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/LeafletMap.js Wed Jun 12 23:20:14 2013
@@ -16,7 +16,7 @@
//
// Directive for dealing with the Leaflet map
-angular.module('rcmes').directive('leafletMap', function($rootScope) {
+App.Directives.directive('leafletMap', function($rootScope) {
return {
restrict: 'E',
replace: true,
Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/OnBlur.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/OnBlur.js?rev=1492495&r1=1492494&r2=1492495&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/OnBlur.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/OnBlur.js Wed Jun 12 23:20:14 2013
@@ -22,7 +22,7 @@
// Consider the test function "testFunc". If you wanted this to run on the blur event
// for an input box you would use the following:
// <input type="text" on-blur="testFunc();" />
-angular.module('rcmes').directive('onBlur', function() {
+App.Directives.directive('onBlur', function() {
return {
restrict: 'A',
link: function($scope, $elem, $attrs) {
Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/PredictiveFileBrowserInput.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/PredictiveFileBrowserInput.js?rev=1492495&r1=1492494&r2=1492495&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/PredictiveFileBrowserInput.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/PredictiveFileBrowserInput.js Wed Jun 12 23:20:14 2013
@@ -16,7 +16,7 @@
//
// Setup a text input that the user will use to input a path to a local file.
-angular.module('rcmes').directive('predictiveFileBrowserInput', function() {
+App.Directives.directive('predictiveFileBrowserInput', function() {
var link = function($scope, $elem, $attrs) {
$scope.autocomplete = [];