Loading core/misc/form.js +1 −1 Original line number Diff line number Diff line Loading @@ -295,7 +295,7 @@ } else { url = window.location; } const hash = url.hash.substr(1); const hash = url.hash.substring(1); if (hash) { const $target = $(`#${hash}`); $('body').trigger('formFragmentLinkClickOrHashChange', [$target]); Loading core/modules/ckeditor5/js/ckeditor5.js +1 −1 Original line number Diff line number Diff line Loading @@ -637,7 +637,7 @@ // Redirect on hash change when the original hash has an associated CKEditor 5. function redirectTextareaFragmentToCKEditor5Instance() { const hash = window.location.hash.substr(1); const hash = window.location.hash.substring(1); const element = document.getElementById(hash); if (element) { const editorID = getElementId(element); Loading core/modules/views/js/base.js +1 −1 Original line number Diff line number Diff line Loading @@ -106,7 +106,7 @@ const chars = ['#', '?', '&']; for (let i = 0; i < chars.length; i++) { if (href.includes(chars[i])) { href = href.substr(0, href.indexOf(chars[i])); href = href.substring(0, href.indexOf(chars[i])); } } return href; Loading core/modules/views_ui/js/ajax.js +1 −1 Original line number Diff line number Diff line Loading @@ -194,7 +194,7 @@ $(once('views-ajax', '#views-tabset a')).on('click', function () { const href = $(this).attr('href'); // Cut of #views-tabset. const displayId = href.substr(11); const displayId = href.substring(11); const viewsPreviewId = document.querySelector( '#views-live-preview #preview-display-id', ); Loading core/modules/views_ui/js/views-admin.js +1 −1 Original line number Diff line number Diff line Loading @@ -221,7 +221,7 @@ this.target.each(function (i) { // Ensure that the maxlength is not exceeded by prepopulating the field. const maxlength = $(this).attr('maxlength') - suffix.length; this.value = transliterated.substr(0, maxlength) + suffix; this.value = transliterated.substring(0, maxlength) + suffix; }); }, Loading Loading
core/misc/form.js +1 −1 Original line number Diff line number Diff line Loading @@ -295,7 +295,7 @@ } else { url = window.location; } const hash = url.hash.substr(1); const hash = url.hash.substring(1); if (hash) { const $target = $(`#${hash}`); $('body').trigger('formFragmentLinkClickOrHashChange', [$target]); Loading
core/modules/ckeditor5/js/ckeditor5.js +1 −1 Original line number Diff line number Diff line Loading @@ -637,7 +637,7 @@ // Redirect on hash change when the original hash has an associated CKEditor 5. function redirectTextareaFragmentToCKEditor5Instance() { const hash = window.location.hash.substr(1); const hash = window.location.hash.substring(1); const element = document.getElementById(hash); if (element) { const editorID = getElementId(element); Loading
core/modules/views/js/base.js +1 −1 Original line number Diff line number Diff line Loading @@ -106,7 +106,7 @@ const chars = ['#', '?', '&']; for (let i = 0; i < chars.length; i++) { if (href.includes(chars[i])) { href = href.substr(0, href.indexOf(chars[i])); href = href.substring(0, href.indexOf(chars[i])); } } return href; Loading
core/modules/views_ui/js/ajax.js +1 −1 Original line number Diff line number Diff line Loading @@ -194,7 +194,7 @@ $(once('views-ajax', '#views-tabset a')).on('click', function () { const href = $(this).attr('href'); // Cut of #views-tabset. const displayId = href.substr(11); const displayId = href.substring(11); const viewsPreviewId = document.querySelector( '#views-live-preview #preview-display-id', ); Loading
core/modules/views_ui/js/views-admin.js +1 −1 Original line number Diff line number Diff line Loading @@ -221,7 +221,7 @@ this.target.each(function (i) { // Ensure that the maxlength is not exceeded by prepopulating the field. const maxlength = $(this).attr('maxlength') - suffix.length; this.value = transliterated.substr(0, maxlength) + suffix; this.value = transliterated.substring(0, maxlength) + suffix; }); }, Loading