Skip to content

Commit

Permalink
remove unneccessary docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Barny-Thorpe committed Mar 26, 2024
1 parent e9ab3d5 commit 4009e5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
11 changes: 2 additions & 9 deletions public/js/gf-giftaid-field-frontend.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
/**
* The donation total object.
* @typedef {Object} Donation
* @property {string} donation - The amount donated as a string.
* @property {string} giftAidTotal - The amount including taxback as a string.
*/

document.addEventListener('DOMContentLoaded', () => {
initGiftAid();
});
Expand Down Expand Up @@ -46,7 +39,7 @@ function totalFieldSelector(fallback) {
* Gets the total amount donated and updates the Gift Aid total.
* @param {HTMLElement} elem The element that has changed.
* @param {string} totalSelector selector of the chosen total field.
* @returns {Donation} The total amount donated.
* @returns {object} The donation and gift aid total.
*/
function getTotalAmount(elem, totalSelector) {
if (! (elem instanceof HTMLInputElement) || ! elem.closest(totalSelector)) {
Expand All @@ -67,7 +60,7 @@ function getTotalAmount(elem, totalSelector) {

/**
* Updates the gift aid display.
* @param {Donation} total
* @param {object} The donation and gift aid total.
* @returns {void}
*/
function updateGiftAidDisplay(total) {
Expand Down
1 change: 0 additions & 1 deletion src/GfGiftAidField.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public static function run(): void

/**
* Custom field to enable the user to choose where they would like to pull the total value from.
* Add 'donation_total_select' to the array of strings in the get_form_editor_field_settings method of your field.
*/
public static function addSelectedPriceFieldSetting(int $position, int $form_id): void
{
Expand Down

0 comments on commit 4009e5a

Please sign in to comment.