From 9d3557dacf7a2939d16a713c1921c04b1a4f5ce2 Mon Sep 17 00:00:00 2001 From: Stefan Seifert Date: Thu, 28 Nov 2024 09:47:45 +0100 Subject: [PATCH 1/2] GraniteUI validator: Use data-foundation-validation instead of data-validation HTML attribute, the latter is deprecated --- changes.xml | 3 +++ .../app-root/clientlibs/authoring/dialog/js/validation.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/changes.xml b/changes.xml index 2a12de3f..b44ceea2 100644 --- a/changes.xml +++ b/changes.xml @@ -33,6 +33,9 @@ Dynamic Media with OpenAPI: Respect Image Dimension from SVG asset metadata. + + GraniteUI validator: Use data-foundation-validation instead of data-validation HTML attribute, the latter is deprecated. + diff --git a/src/main/webapp/app-root/clientlibs/authoring/dialog/js/validation.js b/src/main/webapp/app-root/clientlibs/authoring/dialog/js/validation.js index 3fbe07a4..eb4cd1aa 100644 --- a/src/main/webapp/app-root/clientlibs/authoring/dialog/js/validation.js +++ b/src/main/webapp/app-root/clientlibs/authoring/dialog/js/validation.js @@ -42,7 +42,7 @@ // predefined "responsiveWidths" pattern validator foundationValidator.register('foundation.validation.validator', { - selector: '[data-validation="wcmio.handler.media.responsiveWidths"]', + selector: '[data-foundation-validation="wcmio.handler.media.responsiveWidths"]', validate: function(el) { var value = getValue(el); var valid = value.length === 0 || pattern.responsiveWidths.test(value); From e1c9ffc49075b74a94ff9ba55003fb15ce80d32a Mon Sep 17 00:00:00 2001 From: Stefan Seifert Date: Thu, 28 Nov 2024 09:49:36 +0100 Subject: [PATCH 2/2] update changelog --- changes.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changes.xml b/changes.xml index b44ceea2..43bc51f1 100644 --- a/changes.xml +++ b/changes.xml @@ -33,7 +33,7 @@ Dynamic Media with OpenAPI: Respect Image Dimension from SVG asset metadata. - + GraniteUI validator: Use data-foundation-validation instead of data-validation HTML attribute, the latter is deprecated.