Skip to content

Commit

Permalink
GraniteUI validator: Use data-foundation-validation instead of data-v…
Browse files Browse the repository at this point in the history
…alidation HTML attribute, the latter is deprecated
  • Loading branch information
stefanseifert committed Nov 28, 2024
1 parent c9aaff2 commit 8a8b020
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 http://maven.apache.org/plugins/maven-changes-plugin/xsd/changes-1.0.0.xsd">
<body>

<release version="2.2.4" date="not released">
<action type="fix" dev="sseifert">
GraniteUI validator: Use data-foundation-validation instead of data-validation HTML attribute, the latter is deprecated.
</action>
</release>

<release version="2.2.2" date="2024-07-08">
<action type="update" dev="sseifert" issue="15">
Provide DEBUG/TRACE log messages for link processing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

// predefined "url" pattern validator
foundationValidator.register('foundation.validation.validator', {
selector: '[data-validation="wcmio.handler.link.url"]',
selector: '[data-foundation-validation="wcmio.handler.link.url"]',
validate: function(el) {
var value = getValue(el);
var valid = value.length === 0 || pattern.url.test(value);
Expand Down

0 comments on commit 8a8b020

Please sign in to comment.