File tree Expand file tree Collapse file tree 10 files changed +50
-29
lines changed
view/frontend/templates/advanced
templates/catalog/product
Multishipping/etc/frontend
design/adminhtml/Magento/backend/web/app/setup/styles/less/pages
view/magento/setup/navigation Expand file tree Collapse file tree 10 files changed +50
-29
lines changed Original file line number Diff line number Diff line change 21
21
<input name="form_key" type="hidden" value="<?= $ block ->escapeHtml ($ block ->getFormKey ()) ?> " />
22
22
<?= $ block ->getChildHtml ('form ' ) ?>
23
23
</form>
24
-
25
-
26
- <script>
27
- require(['jquery', "mage/mage"], function(jQuery) {
28
-
29
- jQuery('#edit_form').mage('form').mage('validation', {validationUrl: ' <?= /* @escapeNotVerified */ $ block -> getValidationUrl () ?> '});
30
-
31
- });
24
+ <script type="text/x-magento-init">
25
+ {
26
+ "#edit_form": {
27
+ "Magento_Catalog/catalog/product/edit/attribute": {
28
+ "validationUrl": " <?= /* @escapeNotVerified */ $ block -> getValidationUrl () ?> "
29
+ }
30
+ }
31
+ }
32
32
</script>
33
33
<?= /* @escapeNotVerified */ $ block ->getFormScripts () ?>
Original file line number Diff line number Diff line change 11
11
<form action="<?= /* @escapeNotVerified */ $ block ->getSaveUrl () ?> " method="post" id="attributes-edit-form" class="attributes-edit-form" enctype="multipart/form-data">
12
12
<?= $ block ->getBlockHtml ('formkey ' ) ?>
13
13
</form>
14
- <script>
15
- require(['jquery', "mage/mage"], function(jQuery){
16
-
17
- jQuery('#attributes-edit-form').mage('form')
18
- .mage('validation', {validationUrl: '<?= /* @escapeNotVerified */ $ block ->getValidationUrl () ?> '});
19
-
20
- });
14
+ <script type="text/x-magento-init">
15
+ {
16
+ "#attributes-edit-form": {
17
+ "Magento_Catalog/catalog/product/edit/attribute": {
18
+ "validationUrl": "<?= /* @escapeNotVerified */ $ block ->getValidationUrl () ?> "
19
+ }
20
+ }
21
+ }
21
22
</script>
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright © Magento, Inc. All rights reserved.
3
+ * See COPYING.txt for license details.
4
+ */
5
+
6
+ define ( [
7
+ 'jquery' ,
8
+ 'mage/mage'
9
+ ] , function ( $ ) {
10
+ 'use strict' ;
11
+
12
+ return function ( config , element ) {
13
+
14
+ $ ( element ) . mage ( 'form' ) . mage ( 'validation' , {
15
+ validationUrl : config . validationUrl
16
+ } ) ;
17
+ } ;
18
+ } ) ;
Original file line number Diff line number Diff line change @@ -37,3 +37,4 @@ name,name
37
37
"Minimal Query Length","Minimal Query Length"
38
38
"Maximum Query Length","Maximum Query Length"
39
39
"Rebuild Catalog product fulltext search index","Rebuild Catalog product fulltext search index"
40
+ "Please enter a valid price range.","Please enter a valid price range."
Original file line number Diff line number Diff line change @@ -147,8 +147,8 @@ require([
147
147
}
148
148
},
149
149
messages: {
150
- 'price[to]': {'greater-than-equals-to': 'Please enter a valid price range.'},
151
- 'price[from]': {'less-than-equals-to': 'Please enter a valid price range.'}
150
+ 'price[to]': {'greater-than-equals-to': '<?= /* @escapeNotVerified */ __ ( ' Please enter a valid price range. ' ) ?> '},
151
+ 'price[from]': {'less-than-equals-to': '<?= /* @escapeNotVerified */ __ ( ' Please enter a valid price range. ' ) ?> '}
152
152
}
153
153
});
154
154
});
Original file line number Diff line number Diff line change 43
43
<plugin name =" multishipping_session_mapper" type =" Magento\Multishipping\Model\Checkout\Type\Multishipping\Plugin" sortOrder =" 50" />
44
44
</type >
45
45
<type name =" Magento\Checkout\Controller\Cart" >
46
- <plugin name =" multishipping_clear_addresses" type =" Magento\Multishipping\Model\Cart\Controller\CartPlugin" />
46
+ <plugin name =" multishipping_clear_addresses" type =" Magento\Multishipping\Model\Cart\Controller\CartPlugin" sortOrder = " 50 " />
47
47
</type >
48
48
</config >
Original file line number Diff line number Diff line change 65
65
<preference for =" Magento\Framework\App\Router\PathConfigInterface" type =" Magento\Store\Model\PathConfig" />
66
66
<type name =" Magento\Framework\App\Action\AbstractAction" >
67
67
<plugin name =" storeCheck" type =" Magento\Store\App\Action\Plugin\StoreCheck" sortOrder =" 10" />
68
- <plugin name =" designLoader" type =" Magento\Framework\App\Action\Plugin\Design" sortOrder = " 30 " />
68
+ <plugin name =" designLoader" type =" Magento\Framework\App\Action\Plugin\Design" />
69
69
</type >
70
70
<type name =" Magento\Framework\Url\SecurityInfo" >
71
71
<plugin name =" storeUrlSecurityInfo" type =" Magento\Store\Url\Plugin\SecurityInfo" />
Original file line number Diff line number Diff line change 19
19
padding-top : @main__indent-top ;
20
20
}
21
21
22
- .menu-wrapper {
23
- .logo-static {
24
- pointer-events : none ;
25
- }
26
- }
27
-
28
22
//
29
23
// Header
30
24
// _____________________________________________
Original file line number Diff line number Diff line change 6
6
7
7
// @codingStandardsIgnoreFile
8
8
9
+ use Magento \Backend \Model \UrlInterface ;
10
+ use Magento \Framework \App \ObjectManager ;
11
+
12
+ $ objectManager = ObjectManager::getInstance ();
13
+ /** @var Magento\Backend\Model\UrlInterface $backendUrl */
14
+ $ backendUrl = $ objectManager ->get (UrlInterface::class);
15
+
9
16
?>
10
17
<?php $ expressions = []; foreach ( $ this ->main as $ item ): ?>
11
18
<?php $ expressions [] = '!$state.is( \'' . $ item ['id ' ] . '\') ' ;
20
27
ng-show="<?= implode ( '&& ' , $ expressions ) ?> "
21
28
>
22
29
<nav class="admin__menu" ng-controller="mainController">
23
- <span
24
- class="logo logo-static "
30
+ <a href=" <?= $ backendUrl -> getBaseUrl () . $ backendUrl -> getAreaFrontName (); ?> "
31
+ class="logo"
25
32
data-edition="Community Edition">
26
33
<img class="logo-img"
27
34
src="./pub/images/logo.svg"
28
35
alt="Magento Admin Panel">
29
- </span >
36
+ </a >
30
37
<ul id="nav" role="menubar">
31
38
<li class="item-home level-0" ng-class="{_active: $state.current.name === 'root.home'}">
32
39
<a href="" ui-sref="root.home">
You can’t perform that action at this time.
0 commit comments