Commit 99b9ff85 authored by catch's avatar catch
Browse files

Issue #2819245 by vagelis-prokopiou, mayurjadhav, narendra.rajwar27,...

Issue #2819245 by vagelis-prokopiou, mayurjadhav, narendra.rajwar27, PatashINotFound, AkashkumarOSL, davidhernandez, Vidushi Mehta, cilefen, lauriii, longwave: "Javascript" should be "JavaScript"
parent 4790a87d
......@@ -20,7 +20,7 @@ Drupal includes works under other copyright notices and distributed
according to the terms of the GNU General Public License or a compatible
license, including:
Javascript
JavaScript
Farbtastic - Copyright (c) 2010 Matt Farina
......
/**
* @file
* Defines Javascript behaviors for the block_content module.
* Defines JavaScript behaviors for the block_content module.
*/
(function($, Drupal) {
......
......@@ -7,7 +7,7 @@
use Drupal\system\Entity\Action;
/**
* Tests action plugins using Javascript.
* Tests action plugins using JavaScript.
*
* @group action
*/
......
/**
* @file
* Javascript behaviors for the Book module.
* JavaScript behaviors for the Book module.
*/
(function($, Drupal) {
......
......@@ -148,7 +148,7 @@ function book_form_node_form_alter(&$form, FormStateInterface $form_state, $form
if ($access) {
$collapsed = !($node->isNew() && !empty($node->book['pid']));
$form = \Drupal::service('book.manager')->addFormElements($form, $form_state, $node, $account, $collapsed);
// The "js-hide" class hides submit button when Javascript is enabled.
// The "js-hide" class hides submit button when JavaScript is enabled.
$form['book']['pick-book'] = [
'#type' => 'submit',
'#value' => t('Change book (update list of parents)'),
......
......@@ -142,7 +142,7 @@ public function synchronizeFields(ContentEntityInterface $entity, $sync_langcode
// If a group was selected has the require_all_groups_for_translation
// flag set, there are no untranslatable columns. This is done because
// the UI adds Javascript that disables the other checkboxes, so their
// the UI adds JavaScript that disables the other checkboxes, so their
// values are not saved.
foreach (array_filter($translation_sync) as $group) {
if (!empty($column_groups[$group]['require_all_groups_for_translation'])) {
......
/**
* @file
* Defines Javascript behaviors for the media form.
* Defines JavaScript behaviors for the media form.
*/
(function($, Drupal) {
......
/**
* @file
* Javascript for the node content editing form.
* JavaScript for the node content editing form.
*/
(function($, Drupal) {
......
/**
* @file
* Defines Javascript behaviors for the node module.
* Defines JavaScript behaviors for the node module.
*/
(function($, Drupal, drupalSettings) {
......
......@@ -120,7 +120,7 @@ function settings_tray_preprocess_block(&$variables) {
if (isset($variables['elements']['#contextual_links']['block']['route_parameters']['block'])) {
$block = Block::load($variables['elements']['#contextual_links']['block']['route_parameters']['block']);
if ($access_checker->accessBlockPlugin($block_plugin)->isAllowed() && !_settings_tray_has_block_overrides($block)) {
// Add class and attributes to all blocks to allow Javascript to target.
// Add class and attributes to all blocks to allow JavaScript to target.
$variables['attributes']['class'][] = 'settings-tray-editable';
$variables['attributes']['data-drupal-settingstray'] = 'editable';
}
......
/**
* @file
* Utility classes to assist with Javascript functionality.
* Utility classes to assist with JavaScript functionality.
*/
/**
......
......@@ -30,7 +30,7 @@ public static function getMessagesSelectors() {
}
/**
* Displays links to show messages via Javascript.
* Displays links to show messages via JavaScript.
*
* @return array
* Render array for links.
......
......@@ -63,7 +63,7 @@ public function testDestination() {
[
'input' => 'javascript:alert(0)',
'output' => 'javascript:alert(0)',
'message' => 'Javascript URL is allowed because it is treated as an internal URL.',
'message' => 'JavaScript URL is allowed because it is treated as an internal URL.',
],
];
foreach ($test_cases as $test_case) {
......
......@@ -91,7 +91,7 @@ views.style.table:
label: 'Override normal sorting if click sorting is used'
sticky:
type: boolean
label: 'Enable Drupal style "sticky" table headers (Javascript)'
label: 'Enable Drupal style "sticky" table headers (JavaScript)'
summary:
type: label
label: 'Summary title'
......
......@@ -51,7 +51,7 @@
Drupal.views.instances = {};
/**
* Javascript object for a certain view.
* JavaScript object for a certain view.
*
* @constructor
*
......
......@@ -215,7 +215,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['sticky'] = [
'#type' => 'checkbox',
'#title' => $this->t('Enable Drupal style "sticky" table headers (Javascript)'),
'#title' => $this->t('Enable Drupal style "sticky" table headers (JavaScript)'),
'#default_value' => !empty($this->options['sticky']),
'#description' => $this->t('(Sticky header effects will not be active for preview below, only on live output.)'),
];
......
......@@ -25,7 +25,7 @@
* - attachment_after: An optional attachment view to be displayed after the
* view content.
* - dom_id: Unique id for every view being printed to give unique class for
* Javascript.
* JavaScript.
*
* @see template_preprocess_views_view()
*
......
......@@ -193,7 +193,7 @@ function views_ui_ajax_update_form($form, FormStateInterface $form_state) {
}
/**
* Non-Javascript fallback for updating the add view form.
* Non-JavaScript fallback for updating the add view form.
*/
function views_ui_nojs_submit($form, FormStateInterface $form_state) {
$form_state->setRebuild();
......
......@@ -25,7 +25,7 @@
* - attachment_after: An optional attachment view to be displayed after the
* view content.
* - dom_id: Unique id for every view being printed to give unique class for
* Javascript.
* JavaScript.
*
* @see template_preprocess_views_view()
*/
......
......@@ -47,7 +47,7 @@ public function testDialogOpenAndClose() {
$dialog = $page->find('css', '.ui-dialog');
$this->assertNull($dialog, 'Dialog is closed after clicking the close button.');
// Resize the window. The test should pass after waiting for Javascript to
// Resize the window. The test should pass after waiting for JavaScript to
// finish as no Javascript errors should have been triggered. If there were
// javascript errors the test will fail on that.
$session->resizeWindow(625, 625);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment