We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ed4ee4 + 8572c5a commit 72b2a4cCopy full SHA for 72b2a4c
app/code/Magento/Backend/view/adminhtml/templates/widget/form/container.phtml
@@ -32,12 +32,10 @@
32
33
require([
34
'jquery',
35
- 'mage/backend/form',
36
- 'mage/backend/validation'
+ 'mage/mage'
37
], function($){
38
39
- $('#edit_form').form()
40
- .validation({
+ $('#edit_form').mage('form').mage('validation', {
41
validationUrl: '{$block->escapeJs($block->getValidationUrl())}',
42
highlight: function(element) {
43
var detailsElement = $(element).closest('details');
@@ -49,8 +47,7 @@ require([
49
47
}
50
48
$(element).trigger('highlight.validate');
51
52
- });
53
-
+ });
54
});
55
56
script;
0 commit comments