Skip to content
Snippets Groups Projects
Commit eaad4aa2 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #39725 by Goba: improvements to the code comments.

parent 7bdd8b37
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -16,7 +16,7 @@ function isJsEnabled() { ...@@ -16,7 +16,7 @@ function isJsEnabled() {
return document.jsEnabled; return document.jsEnabled;
} }
// Global Killswitch // Global Killswitch on the <html> element
if (isJsEnabled()) { if (isJsEnabled()) {
document.documentElement.className = 'js'; document.documentElement.className = 'js';
} }
...@@ -38,7 +38,7 @@ if (typeof XMLHttpRequest == 'undefined') { ...@@ -38,7 +38,7 @@ if (typeof XMLHttpRequest == 'undefined') {
} }
/** /**
* Creates an HTTP request and sends the response to the callback function * Creates an HTTP GET request and sends the response to the callback function
*/ */
function HTTPGet(uri, callbackFunction, callbackParameter) { function HTTPGet(uri, callbackFunction, callbackParameter) {
var xmlHttp = new XMLHttpRequest(); var xmlHttp = new XMLHttpRequest();
...@@ -169,7 +169,7 @@ function addLoadEvent(func) { ...@@ -169,7 +169,7 @@ function addLoadEvent(func) {
} }
/** /**
* Adds a function to the window onload event * Adds a function to a given form's submit event
*/ */
function addSubmitEvent(form, func) { function addSubmitEvent(form, func) {
var oldSubmit = form.onsubmit; var oldSubmit = form.onsubmit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment