Remove redundant afformStandalone file
authorColeman Watts <coleman@civicrm.org>
Wed, 11 Dec 2019 14:44:23 +0000 (09:44 -0500)
committerCiviCRM <info@civicrm.org>
Wed, 16 Sep 2020 02:13:20 +0000 (19:13 -0700)
ext/afform/core/ang/afformStandalone.ang.php
ext/afform/core/ang/afformStandalone.js
ext/afform/core/ang/afformStandalone/PageCtrl.js [deleted file]

index 3b145af59c873a9b6159b1a6d25397b00ec00e8c..6f5f89f8a01306099780d3e9b00c6df890df22ae 100644 (file)
@@ -6,13 +6,8 @@
 return [
   'js' => [
     'ang/afformStandalone.js',
-    'ang/afformStandalone/*.js',
-    'ang/afformStandalone/*/*.js',
   ],
   'css' => [],
-  'partials' => [
-    'ang/afformStandalone',
-  ],
   'settings' => [],
   'requires' => ['ngRoute'],
 ];
index c7b03a2a86d9a0dde660fd156e92b1a7b10e4020..4d65f38090659d2461aef0a3b3b6591c72c74453 100644 (file)
@@ -1,4 +1,16 @@
 (function(angular, $, _) {
   // Declare a list of dependencies.
   angular.module('afformStandalone', CRM.angRequires('afformStandalone'));
+
+  angular.module('afformStandalone', CRM.angular.modules)
+    .config(function($routeProvider) {
+      $routeProvider.when('/', {
+        controller: 'AfformStandalonePageCtrl',
+        template: function() {
+          return '<div ' + CRM.afform.open + '="{}"></div>';
+        }
+      });
+    })
+    .controller('AfformStandalonePageCtrl', function($scope) {});
+
 })(angular, CRM.$, CRM._);
diff --git a/ext/afform/core/ang/afformStandalone/PageCtrl.js b/ext/afform/core/ang/afformStandalone/PageCtrl.js
deleted file mode 100644 (file)
index 7f597b0..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-(function(angular, $, _) {
-
-  angular.module('afformStandalone', CRM.angular.modules)
-    .config(function($routeProvider) {
-      $routeProvider.when('/', {
-        controller: 'AfformStandalonePageCtrl',
-        template: function() {return '<div ' + CRM.afform.open + '="{}"></div>'; }
-      });
-    })
-    .controller('AfformStandalonePageCtrl', function($scope) {});
-
-})(angular, CRM.$, CRM._);