styling fixes
authorKurund Jalmi <kurundjalmi@thirdsectordesign.org>
Mon, 21 Aug 2023 20:37:47 +0000 (21:37 +0100)
committerKurund Jalmi <kurundjalmi@thirdsectordesign.org>
Wed, 6 Dec 2023 00:23:33 +0000 (00:23 +0000)
ext/afform/admin/ang/afGuiEditor/afGuiEditor.component.js
ext/afform/core/Civi/Api4/Action/Afform/Process.php
ext/search_kit/ang/crmSearchTasks/crmSearchTaskProcess.ctrl.js

index 6a80ebbd307a66599a77759d70ac217ed08a9b41..de4b1a2c892d109195bb47c803f3aca3159b279e 100644 (file)
         } else {
           editor.afform.create_submission = true;
         }
-      }
+      };
 
       this.toggleEmailVerification = function() {
         if (editor.afform.allow_verification_by_email) {
           editor.afform.create_submission = true;
           editor.afform.manual_processing = true;
         }
-      }
+      };
 
       function loadNavigationMenu() {
         if ('navigationMenu' in editor) {
index de77b1a5b2e1341d5ac33004a3bebf2535fa4424..2b679b208276eb28cfcb5aeeaa03d8514276ae56 100644 (file)
@@ -3,7 +3,6 @@
 namespace Civi\Api4\Action\Afform;
 
 use Civi\Api4\AfformSubmission;
-use Civi\Afform\Event\AfformSubmitEvent;
 
 /**
  * Class Process
index 13297492ac125386b72ac5fa72adb761a511af2a..5270a9f286516c962f48b615b831041563b2056d 100644 (file)
         select: ["afform_name"],
         where: [["id", "=", id]],
       }).then(function(afformSubmissions) {
-        ctrl.afformName = afformSubmissions[0]['afform_name'];
+        ctrl.afformName = afformSubmissions[0].afform_name;
       }, function(error) {
         ctrl.onError();
       });
-    }
+    };
 
     this.processData = function() {
       _.each(ctrl.ids, function(id) {
           name: ctrl.afformName
         }).then(function(result) {
         }, function(failure) {
-          ctrl.onError()
+          ctrl.onError();
         });
       });
 
       ctrl.onSuccess();
-    }
+    };
 
     this.save = function() {
       // get the afform name