From 594cf63a163dfe71b31141708abc90e0fa99e50a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 20 Mar 2023 23:16:32 -0400 Subject: [PATCH] spelling: javascript Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG | 2 +- doc/Addons.md | 6 +++--- doc/themes.md | 2 +- mods/bookmarklet-share2friendica/README.md | 2 +- src/App/Page.php | 2 +- src/Module/HTTPException/PageNotFound.php | 2 +- src/Module/Media/Attachment/Upload.php | 2 +- src/Module/Media/Photo/Upload.php | 2 +- .../Notifications/ValueObject/FormattedNavNotification.php | 2 +- view/theme/frio/js/mod_admin.js | 2 +- view/theme/frio/js/mod_display.js | 2 +- view/theme/frio/js/mod_notifications.js | 2 +- view/theme/frio/theme.php | 2 +- 13 files changed, 15 insertions(+), 15 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 49d55d1119..f4631b346a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1968,7 +1968,7 @@ Version 3.4.1 (2015-07-06) Implement server-to-server encryption (RINO) using php-encryption library as "RINO 2", deprecate "RINO 1" (issue #1655) (fabrixxm) Fix connection with Diaspora "freelove" account (issue #1572) (annando) Various SQL speedups (annando) - Port of Javascript DatePicker input from RedMatrix (rabuzarus) + Port of JavaScript DatePicker input from RedMatrix (rabuzarus) Port of RedMatrix archive widget (rabuzarus) Load profile owner settings for theme on profile page (rabuzarus) Move HTML code from php into templates (rabuzarus) diff --git a/doc/Addons.md b/doc/Addons.md index dbb2c501fe..df18ea62f2 100644 --- a/doc/Addons.md +++ b/doc/Addons.md @@ -124,7 +124,7 @@ function _footer() ### JavaScript hooks The main Friendica script provides hooks via events dispatched on the `document` property. -In your Javascript file included as described above, add your event listener like this: +In your JavaScript file included as described above, add your event listener like this: ```js document.addEventListener(name, callback); @@ -133,7 +133,7 @@ document.addEventListener(name, callback); - *name* is the name of the hook and corresponds to a known Friendica JavaScript hook. - *callback* is a JavaScript anonymous function to execute. -More info about Javascript event listeners: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener +More info about JavaScript event listeners: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener #### Current JavaScript hooks @@ -425,7 +425,7 @@ Called after HTML content functions have completed. ### footer Called after HTML content functions have completed. -Deferred Javascript files should be registered using this hook. +Deferred JavaScript files should be registered using this hook. `$b` is (string) HTML of footer div/element. ### avatar_lookup diff --git a/doc/themes.md b/doc/themes.md index 79b0d06ddb..8d85dce2a9 100644 --- a/doc/themes.md +++ b/doc/themes.md @@ -50,7 +50,7 @@ if you want to override any template within your theme create your version of th any template that exists there will be used instead of the default one. -### Javascript +### JavaScript The same rule applies to the JavaScript files found in diff --git a/mods/bookmarklet-share2friendica/README.md b/mods/bookmarklet-share2friendica/README.md index 4d67bc4e0e..b6b1b19a16 100644 --- a/mods/bookmarklet-share2friendica/README.md +++ b/mods/bookmarklet-share2friendica/README.md @@ -1,6 +1,6 @@ # Bookmarklet-share2friendica -Javascript bookmarklet to share websites with your friendica account +JavaScript bookmarklet to share websites with your friendica account ## Getting Started diff --git a/src/App/Page.php b/src/App/Page.php index 1a083522e3..8bb60fa242 100644 --- a/src/App/Page.php +++ b/src/App/Page.php @@ -291,7 +291,7 @@ class Page implements ArrayAccess * Initializes Page->page['footer']. * * Includes: - * - Javascript homebase + * - JavaScript homebase * - Mobile toggle link * - Registered footer scripts (through App->registerFooterScript()) * - footer.tpl template diff --git a/src/Module/HTTPException/PageNotFound.php b/src/Module/HTTPException/PageNotFound.php index 5818f87598..4956bfcdc1 100644 --- a/src/Module/HTTPException/PageNotFound.php +++ b/src/Module/HTTPException/PageNotFound.php @@ -61,7 +61,7 @@ class PageNotFound extends BaseModule * Otherwise we are going to emit a 404 not found. */ $queryString = $this->server['QUERY_STRING']; - // Stupid browser tried to pre-fetch our Javascript img template. Don't log the event or return anything - just quietly exit. + // Stupid browser tried to pre-fetch our JavaScript img template. Don't log the event or return anything - just quietly exit. if (!empty($queryString) && preg_match('/{[0-9]}/', $queryString) !== 0) { System::exit(); } diff --git a/src/Module/Media/Attachment/Upload.php b/src/Module/Media/Attachment/Upload.php index b837b8df7b..50c20b3641 100644 --- a/src/Module/Media/Attachment/Upload.php +++ b/src/Module/Media/Attachment/Upload.php @@ -38,7 +38,7 @@ use Psr\Log\LoggerInterface; /** * Asynchronous attachment upload module * - * Only used as the target action of the AjaxUpload Javascript library + * Only used as the target action of the AjaxUpload JavaScript library */ class Upload extends \Friendica\BaseModule { diff --git a/src/Module/Media/Photo/Upload.php b/src/Module/Media/Photo/Upload.php index 8b56540f43..1283b7cf34 100644 --- a/src/Module/Media/Photo/Upload.php +++ b/src/Module/Media/Photo/Upload.php @@ -40,7 +40,7 @@ use Psr\Log\LoggerInterface; /** * Asynchronous photo upload module * - * Only used as the target action of the AjaxUpload Javascript library + * Only used as the target action of the AjaxUpload JavaScript library */ class Upload extends \Friendica\BaseModule { diff --git a/src/Navigation/Notifications/ValueObject/FormattedNavNotification.php b/src/Navigation/Notifications/ValueObject/FormattedNavNotification.php index 493fdb8112..8f64bf25ad 100644 --- a/src/Navigation/Notifications/ValueObject/FormattedNavNotification.php +++ b/src/Navigation/Notifications/ValueObject/FormattedNavNotification.php @@ -53,7 +53,7 @@ class FormattedNavNotification extends BaseEntity */ public function __construct(string $contact_name, string $contact_url, string $contact_photo, string $timestamp, string $plaintext, string $html, string $href, bool $seen) { - // Properties differ from constructor because this structure is used in the "nav-update" Javascript event listener + // Properties differ from constructor because this structure is used in the "nav-update" JavaScript event listener $this->contact = [ 'name' => $contact_name, 'url' => $contact_url, diff --git a/view/theme/frio/js/mod_admin.js b/view/theme/frio/js/mod_admin.js index 1ea087c2ca..b782df30db 100644 --- a/view/theme/frio/js/mod_admin.js +++ b/view/theme/frio/js/mod_admin.js @@ -1,6 +1,6 @@ // @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later /** - * Javascript for the admin module + * JavaScript for the admin module */ $(function () { let $body = $("body"); diff --git a/view/theme/frio/js/mod_display.js b/view/theme/frio/js/mod_display.js index 907b0fa7ea..16dfc7730e 100644 --- a/view/theme/frio/js/mod_display.js +++ b/view/theme/frio/js/mod_display.js @@ -1,6 +1,6 @@ // @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later /** - * Javascript for the display module + * JavaScript for the display module */ // Catch the GUID from the URL diff --git a/view/theme/frio/js/mod_notifications.js b/view/theme/frio/js/mod_notifications.js index 8ab1bccb75..c724995e88 100644 --- a/view/theme/frio/js/mod_notifications.js +++ b/view/theme/frio/js/mod_notifications.js @@ -1,7 +1,7 @@ // @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPLv3-or-later /** - * Javascript for the notifications module + * JavaScript for the notifications module */ // Catch the intro ID from the URL diff --git a/view/theme/frio/theme.php b/view/theme/frio/theme.php index e7b18ea770..db48d3d7fa 100644 --- a/view/theme/frio/theme.php +++ b/view/theme/frio/theme.php @@ -18,7 +18,7 @@ * along with this program. If not, see . * * Name: frio - * Description: Responsive theme based on a modern HTML/CSS/Javascript framework. + * Description: Responsive theme based on a modern HTML/CSS/JavaScript framework. * Version: V.1.0 * Author: Rabuzarus * Maintainer: Hypolite Petovan