File tree 13 files changed +82
-43
lines changed
Controller/Adminhtml/System/Message
templates/system/messages
Backend/view/adminhtml/templates/widget/button
frontend/templates/product
CurrencySymbol/view/adminhtml/templates
Sales/Block/Adminhtml/Order/Create/Totals
Ui/view/base/web/js/form/element
design/frontend/Magento/luma/Magento_Checkout/web/css/source/module/checkout
13 files changed +82
-43
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,10 @@ public function execute()
59
59
if (empty ($ result )) {
60
60
$ result [] = [
61
61
'severity ' => (string )\Magento \Framework \Notification \MessageInterface::SEVERITY_NOTICE ,
62
- 'text ' => 'You have viewed and resolved all recent system notices. '
63
- . 'Please refresh the web page to clear the notice alert. ' ,
62
+ 'text ' => __ (
63
+ 'You have viewed and resolved all recent system notices. '
64
+ . 'Please refresh the web page to clear the notice alert. '
65
+ )
64
66
];
65
67
}
66
68
$ this ->getResponse ()->representJson ($ this ->jsonHelper ->jsonEncode ($ result ));
Original file line number Diff line number Diff line change @@ -48,3 +48,4 @@ Severity,Severity
48
48
"Date Added","Date Added"
49
49
Message,Message
50
50
Actions,Actions
51
+ "You have viewed and resolved all recent system notices. Please refresh the web page to clear the notice alert.","You have viewed and resolved all recent system notices. Please refresh the web page to clear the notice alert."
Original file line number Diff line number Diff line change 19
19
</ul>
20
20
</div>
21
21
22
- <script>
23
- require([
24
- "jquery",
25
- "Magento_Ui/js/modal/modal"
26
- ], function($){
27
- if (this.modal) {
28
- this.modal.html($('[data-role="system_messages_list"]').html());
29
- } else {
30
- this.modal = $('[data-role="system_messages_list"]').modal({
31
- modalClass: 'modal-system-messages ui-popup-message',
32
- type: 'popup',
33
- buttons: []
34
- });
22
+ <script type="text/x-magento-init">
23
+ {
24
+ "[data-role=system_messages_list]": {
25
+ "Magento_AdminNotification/js/system/messages/popup": {
26
+ class: 'modal-system-messages ui-popup-message'
27
+ }
28
+ }
35
29
}
36
- this.modal.modal('openModal');
37
- });
38
- </script>
30
+ </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
+ 'Magento_Ui/js/modal/modal'
9
+ ] , function ( $ ) {
10
+ 'use strict' ;
11
+
12
+ return function ( data , element ) {
13
+ if ( this . modal ) {
14
+ this . modal . html ( $ ( element ) . html ( ) ) ;
15
+ } else {
16
+ this . modal = $ ( element ) . modal ( {
17
+ modalClass : data . class ,
18
+ type : 'popup' ,
19
+ buttons : [ ]
20
+ } ) ;
21
+ }
22
+ this . modal . modal ( 'openModal' ) ;
23
+ } ;
24
+ } ) ;
Original file line number Diff line number Diff line change 41
41
<?php endif ; ?>
42
42
</div>
43
43
44
- <script>
45
- require(['jquery'], function($){
46
- $('.actions-split')
47
- .on('click.splitDefault', '.action-default', function() {
48
- $(this).siblings('.dropdown-menu').find('.item-default').trigger('click');
49
- });
50
- });
44
+ <script type="text/x-magento-init">
45
+ {
46
+ ".actions-split": {
47
+ "Magento_Ui/js/grid/controls/button/split": {}
48
+ }
49
+ }
51
50
</script>
51
+
Original file line number Diff line number Diff line change @@ -32,9 +32,7 @@ define([
32
32
data = { } ,
33
33
parameters = { } ,
34
34
root = { } ,
35
- len = 0 ,
36
- key = '' ,
37
- i = 0 ;
35
+ key = '' ;
38
36
39
37
/* eslint-disable */
40
38
/**
@@ -162,13 +160,14 @@ define([
162
160
* @returns {void }
163
161
*/
164
162
categoryLoader . buildCategoryTree = function ( parent , config ) { // eslint-disable-line no-shadow
163
+ var i = 0 ;
165
164
166
165
if ( ! config ) {
167
166
return null ;
168
167
}
169
168
170
169
if ( parent && config && config . length ) {
171
- for ( i = 0 ; i < config . length ; i ++ ) {
170
+ for ( i ; i < config . length ; i ++ ) {
172
171
categoryLoader . processCategoryTree ( parent , config , i ) ;
173
172
}
174
173
}
@@ -181,11 +180,14 @@ define([
181
180
* @returns {Object }
182
181
*/
183
182
categoryLoader . buildHashChildren = function ( hash , node ) { // eslint-disable-line no-shadow
183
+ var i = 0 ,
184
+ len ;
185
+
184
186
// eslint-disable-next-line no-extra-parens
185
187
if ( ( node . childNodes . length > 0 ) || ( node . loaded === false && node . loading === false ) ) {
186
188
hash . children = [ ] ;
187
189
188
- for ( i = 0 , len = node . childNodes . length ; i < len ; i ++ ) {
190
+ for ( i , len = node . childNodes . length ; i < len ; i ++ ) {
189
191
/* eslint-disable */
190
192
if ( ! hash . children ) {
191
193
hash . children = [ ] ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ $_helper = $this->helper('Magento\Catalog\Helper\Output');
47
47
<?php /** @var $_product \Magento\Catalog\Model\Product */ ?>
48
48
<?php foreach ($ _productCollection as $ _product ): ?>
49
49
<?= /* @escapeNotVerified */ ($ iterator ++ == 1 ) ? '<li class="item product product-item"> ' : '</li><li class="item product product-item"> ' ?>
50
- <div class="product-item-info" data-container="product-grid ">
50
+ <div class="product-item-info" data-container="product-<?= /* @escapeNotVerified */ $ viewMode ?> ">
51
51
<?php
52
52
$ productImage = $ block ->getImage ($ _product , $ image );
53
53
if ($ pos != null ) {
Original file line number Diff line number Diff line change 13
13
*/
14
14
?>
15
15
16
- <?php $ block ->getCurrencySymbolsData ();?>
17
-
18
16
<form id="currency-symbols-form" action="<?= /* @escapeNotVerified */ $ block ->getFormActionUrl () ?> " method="post">
19
17
<input name="form_key" type="hidden" value="<?= /* @escapeNotVerified */ $ block ->getFormKey () ?> " />
20
18
<fieldset class="admin__fieldset">
Original file line number Diff line number Diff line change 15
15
*/
16
16
class Discount extends \Magento \Sales \Block \Adminhtml \Order \Create \Totals \DefaultTotals
17
17
{
18
- //protected $_template = 'tax/checkout/subtotal.phtml';
19
-
20
- //protected $_template = 'tax/checkout/subtotal.phtml';
18
+ /**
19
+ * @var \Magento\Tax\Model\Config
20
+ */
21
21
protected $ _taxConfig ;
22
22
23
23
/**
Original file line number Diff line number Diff line change 11
11
<?= $ block ->getSaveButtonHtml () ?>
12
12
</div>
13
13
<?= $ block ->getRenameFormHtml () ?>
14
- <script>
15
- require(['jquery', "mage/mage"], function(jQuery) {
16
-
17
- jQuery('# <?= /* @escapeNotVerified */ $ block -> getRenameFormId () ?> ').mage('form').mage('validation');
18
-
19
- });
14
+ <script type="text/x-magento-init" >
15
+ {
16
+ "# <?= /* @escapeNotVerified */ $ block -> getRenameFormId () ?> ": {
17
+ "Magento_Tax/js/page/validate": {}
18
+ }
19
+ }
20
20
</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 ( jQuery ) {
10
+ 'use strict' ;
11
+
12
+ return function ( data , element ) {
13
+ jQuery ( element ) . mage ( 'form' ) . mage ( 'validation' ) ;
14
+ } ;
15
+ } ) ;
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ define([
220
220
} ,
221
221
222
222
/**
223
- * Sets 'value' as 'hidden' propertie 's value, triggers 'toggle' event,
223
+ * Sets 'value' as 'hidden' property 's value, triggers 'toggle' event,
224
224
* sets instance's hidden identifier in params storage based on
225
225
* 'value'.
226
226
*
Original file line number Diff line number Diff line change 46
46
.lib-css (border-top , @checkout-payment-method-title__border );
47
47
}
48
48
}
49
+ form {
50
+ & .form-purchase-order {
51
+ margin-bottom : 15px ;
52
+ }
53
+ }
49
54
}
50
55
51
56
.payment-method-content {
You can’t perform that action at this time.
0 commit comments