Skip to content

Commit 5687322

Browse files
author
Dmytro Vilchynskyi
committed
MAGETWO-33407: Cover MAGETWO-31855 changes by static tests
- fixed static tests
1 parent db60a6d commit 5687322

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

app/code/Magento/Backend/view/adminhtml/templates/widget/grid/serializer.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</script>
3737
<?php else :?>
3838
<input type="hidden" name="<?php echo $block->getInputElementName()?>" value="" id="<?php echo $_id?>" />
39-
<script type="text/javascript">
39+
<script>
4040
require([
4141
'mage/adminhtml/grid'
4242
], function(){

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute/set/main.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="attribute-set">
1111
<div class="edit-attribute-set attribute-set-col">
1212
<?php echo $block->getSetFormHtml() ?>
13-
<script type="text/javascript">
13+
<script>
1414
require([
1515
"jquery",
1616
"mage/mage"

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/composite/fieldset/options/type/date.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<?php echo $block->getDateHtml() ?>
2424

2525
<?php if (!$block->useCalendar()): ?>
26-
<script type="text/javascript">
26+
<script>
2727
require([
2828
"prototype",
2929
"Magento_Catalog/catalog/product/composite/configure"

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/tab/inventory.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ toggleValueElements($('inventory_use_config_manage_stock'), $('inventory_use_con
6969
<input type="checkbox" id="inventory_use_config_min_qty" name="<?php echo $block->getFieldSuffix() ?>[stock_data][use_config_min_qty]" value="1" <?php echo $_checked ?> onclick="toggleValueElements(this, this.parentNode);" <?php echo $_readonly;?>>
7070
<label for="inventory_use_config_min_qty"><?php echo __('Use Config Settings') ?></label>
7171
<?php if (!$block->isReadonly()): ?>
72-
<script type="text/javascript">
72+
<script>
7373
require(["prototype"], function(){
7474
toggleValueElements($('inventory_use_config_min_qty'), $('inventory_use_config_min_qty').parentNode);
7575
});

app/code/Magento/Cookie/View/frontend/templates/html/notices.phtml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
// @codingStandardsIgnoreFile
88

99
?>
10-
<?php /** @var \Magento\Cookie\Block\Html\Notices $this */ ?>
11-
<?php if ($this->helper('Magento\Cookie\Helper\Cookie')->isUserNotAllowSaveCookie()): ?>
10+
<?php /** @var \Magento\Cookie\Block\Html\Notices $block */ ?>
11+
<?php if ($block->helper('Magento\Cookie\Helper\Cookie')->isUserNotAllowSaveCookie()): ?>
1212
<div class="message global cookie" id="notice-cookie-block" style="display: none">
1313
<div class="content">
1414
<p>
1515
<strong><?php echo __('We use cookies to make your experience better.') ?></strong>
1616
<span><?php echo __('To comply with the new e-Privacy directive, we need to ask for your consent to set the cookies.') ?></span>
17-
<?php echo __('<a href="%1">Learn more</a>.', $this->getPrivacyPolicyLink()) ?></p>
17+
<?php echo __('<a href="%1">Learn more</a>.', $block->getPrivacyPolicyLink()) ?></p>
1818
<div class="actions">
1919
<button id="btn-cookie-allow" class="action allow primary">
2020
<span><?php echo __('Allow Cookies');?></span>
@@ -32,9 +32,9 @@
3232
$('#notice-cookie-block').mage('cookieNotices', {
3333
cookieAllowButtonSelector: '#btn-cookie-allow',
3434
cookieName: '<?php echo \Magento\Cookie\Helper\Cookie::IS_USER_ALLOWED_SAVE_COOKIE ?>',
35-
cookieValue: '<?php echo $this->helper('Magento\Cookie\Helper\Cookie')->getAcceptedSaveCookiesWebsiteIds() ?>',
36-
cookieLifetime: <?php echo $this->helper('Magento\Cookie\Helper\Cookie')->getCookieRestrictionLifetime()?>,
37-
noCookiesUrl: '<?php echo $this->getUrl('cookie/index/noCookies') ?>'
35+
cookieValue: '<?php echo $block->helper('Magento\Cookie\Helper\Cookie')->getAcceptedSaveCookiesWebsiteIds() ?>',
36+
cookieLifetime: <?php echo $block->helper('Magento\Cookie\Helper\Cookie')->getCookieRestrictionLifetime()?>,
37+
noCookiesUrl: '<?php echo $block->getUrl('cookie/index/noCookies') ?>'
3838
});
3939
// ]]>
4040

app/code/Magento/Downloadable/view/adminhtml/templates/product/edit/downloadable/links.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ require([
118118
'<div class="fileinput-button form-buttons">'+
119119
'<span><?php echo __('Browse Files...') ?></span>' +
120120
'<input id="downloadable_link_{{id}}_sample_file" type="file" name="<?php echo $block->getFileFieldName('link_samples') ?>">' +
121-
'<script type="text/javascript">' +
121+
'<script>' +
122122
'/*<![CDATA[*/' +
123123
'linksUploader("#downloadable_link_{{id}}_sample_file", "<?php echo $block->getUploadUrl('link_samples') ?>"); ' +
124124
'/*]]>*/' +
@@ -146,7 +146,7 @@ require([
146146
'<div class="fileinput-button form-buttons">'+
147147
'<span><?php echo __('Browse Files...') ?></span>' +
148148
'<input id="downloadable_link_{{id}}_file" type="file" name="<?php echo $block->getFileFieldName('links') ?>">' +
149-
'<script type="text/javascript">' +
149+
'<script>' +
150150
'/*<![CDATA[*/' +
151151
'linksUploader("#downloadable_link_{{id}}_file", "<?php echo $block->getUploadUrl('links') ?>"); ' +
152152
'/*]]>*/' +

app/code/Magento/Reports/view/adminhtml/templates/grid.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ require([
9494
</div>
9595
</div>
9696
<?php if ($block->canDisplayContainer()): ?>
97-
<script type="text/javascript">
97+
<script>
9898
require([
9999
"jquery",
100100
"validation",

0 commit comments

Comments
 (0)