Skip to content

Commit 6ca8249

Browse files
author
Olexandr Lysenko
committed
Merge branch 'develop' into MAGETWO-31593
2 parents a599bf3 + 3de5edb commit 6ca8249

File tree

571 files changed

+3521
-7497
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

571 files changed

+3521
-7497
lines changed

app/code/Magento/AdminNotification/view/adminhtml/templates/system/messages/popup.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<?php endforeach;?>
1515
</ul>
1616
</div>
17-
<script type="text/javascript">
17+
<script>
1818
require([
1919
"jquery",
2020
"jquery/ui"

app/code/Magento/Backend/Block/Widget/Form/Container.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function getFormHtml()
178178
public function getFormInitScripts()
179179
{
180180
if (!empty($this->_formInitScripts) && is_array($this->_formInitScripts)) {
181-
return '<script type="text/javascript">' . implode("\n", $this->_formInitScripts) . '</script>';
181+
return '<script>' . implode("\n", $this->_formInitScripts) . '</script>';
182182
}
183183
return '';
184184
}
@@ -189,7 +189,7 @@ public function getFormInitScripts()
189189
public function getFormScripts()
190190
{
191191
if (!empty($this->_formScripts) && is_array($this->_formScripts)) {
192-
return '<script type="text/javascript">' . implode("\n", $this->_formScripts) . '</script>';
192+
return '<script>' . implode("\n", $this->_formScripts) . '</script>';
193193
}
194194
return '';
195195
}

app/code/Magento/Backend/Block/Widget/Form/Element/Dependence.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ protected function _toHtml()
120120
if (!$this->_depends) {
121121
return '';
122122
}
123-
return '<script type="text/javascript">
123+
return '<script>
124124
require(["mage/adminhtml/form"], function(){
125125
new FormElementDependenceController(' .
126126
$this->_getDependsJson() .

app/code/Magento/Backend/Block/Widget/Grid/Column/Filter/Date.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function getHtml()
8686
' value="' .
8787
$this->_localeResolver->getLocaleCode() .
8888
'"/>';
89-
$html .= '<script type="text/javascript">
89+
$html .= '<script>
9090
require(["jquery", "mage/calendar"], function($){
9191
$("#' .
9292
$htmlId .

app/code/Magento/Backend/Block/Widget/Grid/Column/Filter/Datetime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function getHtml()
130130
) . '/>' . '</div></div>';
131131
$html .= '<input type="hidden" name="' . $this->_getHtmlName() . '[locale]"' . ' value="'
132132
. $this->_localeResolver->getLocaleCode() . '"/>';
133-
$html .= '<script type="text/javascript">
133+
$html .= '<script>
134134
require(["jquery", "mage/calendar"],function($){
135135
$("#' . $htmlId . '_range").dateRange({
136136
dateFormat: "' . $format . '",

app/code/Magento/Backend/Controller/Adminhtml/Auth/DeniedIframe.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(
3232
*/
3333
protected function _getDeniedIframe()
3434
{
35-
return '<script type="text/javascript">parent.window.location = \''
35+
return '<script>parent.window.location = \''
3636
. $this->_helper->getHomePageUrl() . '\';</script>';
3737
}
3838

app/code/Magento/Backend/view/adminhtml/layout/default.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<block class="Magento\Backend\Block\Page\Copyright" name="copyright" as="copyright"/>
7777
<block class="Magento\Backend\Block\Page\Footer" name="version" as="version">
7878
<arguments>
79-
<argument name="bugreport_url" xsi:type="string">http://www.magentocommerce.com/bug-tracking</argument>
79+
<argument name="bugreport_url" xsi:type="string">https://github.com/magento/magento2/issues</argument>
8080
</arguments>
8181
</block>
8282
</container>

app/code/Magento/Backend/view/adminhtml/templates/admin/login.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</div>
3939
</fieldset>
4040
</form>
41-
<script type="text/javascript">
41+
<script>
4242
function initForm($){
4343
$('#login-form').form().validation();
4444
}

app/code/Magento/Backend/view/adminhtml/templates/dashboard/grid.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ $numColumns = sizeof($this->getColumns());
4545
</table>
4646
</div>
4747
<?php if ($this->canDisplayContainer()): ?>
48-
<script type="text/javascript">
48+
<script>
4949
var deps = ['mage/adminhtml/grid'];
5050

5151
<?php if (strpos($this->getRowClickCallback(), 'order.') !== false): ?>

app/code/Magento/Backend/view/adminhtml/templates/dashboard/index.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
?>
77

88
<?php if (is_array($this->getChildBlock('diagrams')->getTabsIds())) : ?>
9-
<script type="text/javascript">
9+
<script>
1010
function changeDiagramsPeriod(periodObj) {
1111
periodParam = periodObj.value ? 'period/' + periodObj.value + '/' : '';
1212
<?php foreach ($this->getChildBlock('diagrams')->getTabsIds() as $tabId): ?>

app/code/Magento/Backend/view/adminhtml/templates/dashboard/store/switcher.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<?php endforeach; ?>
3232
</select>
3333
</p>
34-
<script type="text/javascript">
34+
<script>
3535
function switchStore(obj){
3636
if (obj.options[obj.selectedIndex].getAttribute('website') == 'true') {
3737
var selectionType = 'website';

app/code/Magento/Backend/view/adminhtml/templates/media/uploader.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</div>
2626
</div>
2727

28-
<script type="text/javascript">
28+
<script>
2929
require([
3030
"jquery",
3131
"mage/translate",

app/code/Magento/Backend/view/adminhtml/templates/menu.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010

1111
<?php /* @TODO: find the place for the help ?>
1212
<a id="page-help-link" href="<?php echo $this->helper('Magento\Backend\Helper\Data')->getPageHelpUrl() ?>"><?php echo __('Get help for this page') ?></a>
13-
<script type="text/javascript">$('page-help-link').target = 'magento_page_help'</script>
13+
<script>$('page-help-link').target = 'magento_page_help'</script>
1414
<?php */ ?>

app/code/Magento/Backend/view/adminhtml/templates/page/js/calendar.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
?>
1616

17-
<script type="text/javascript">
17+
<script>
1818
require([
1919
"jquery",
2020
"jquery/ui"

app/code/Magento/Backend/view/adminhtml/templates/page/js/head_scripts.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
* See COPYING.txt for license details.
55
*/
66
?>
7-
<script type="text/javascript">
7+
<script>
88
Ext.BLANK_IMAGE_URL = BLANK_IMG;
99
Ext.UpdateManager.defaults.loadScripts = false;
1010
Ext.UpdateManager.defaults.disableCaching = true;
1111
</script>
1212

1313
<script type="text/javascript" src="<?php echo $this->getViewFileUrl('tiny_mce/tiny_mce_src.js') ?>"></script>
1414

15-
<script type="text/javascript">
15+
<script>
1616
Fieldset.addToPrefix(<?php echo $this->helper('Magento\Backend\Helper\Data')->getCurrentUserId() ?>);
1717
</script>

app/code/Magento/Backend/view/adminhtml/templates/page/js/require_js.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66
?>
7-
<script type="text/javascript">
7+
<script>
88
var BLANK_URL = '<?php echo $this->getViewFileUrl('blank.html') ?>';
99
var BLANK_IMG = '<?php echo $this->getViewFileUrl('spacer.gif') ?>';
1010
var BASE_URL = '<?php echo $this->getUrl('*') ?>';

app/code/Magento/Backend/view/adminhtml/templates/page/js/translate.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $_data = [
4242
'Please wait, loading...' => __('Please wait, loading...'),
4343
];
4444
?>
45-
<script type="text/javascript">
45+
<script>
4646
require(["jquery","mage/translate"], function($){
4747
$.mage.translate.add(<?php echo Zend_Json::encode($_data) ?>)
4848
});

app/code/Magento/Backend/view/adminhtml/templates/page/locale.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="control">
1010
<?php echo $this->getLocaleSelect(); ?>
1111
</div>
12-
<script type="text/javascript">
12+
<script>
1313
function setInterfaceLanguage(event) {
1414
var elem = Event.element(event);
1515
if (elem) {

app/code/Magento/Backend/view/adminhtml/templates/page/system/config/robots/reset.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
$coreHelper = $this->helper('Magento\Core\Helper\Data');
1212
?>
1313

14-
<script type="text/javascript">
14+
<script>
1515
function resetRobotsToDefault()
1616
{
1717
$('design_search_engine_robots_custom_instructions').value = <?php

app/code/Magento/Backend/view/adminhtml/templates/store/switcher.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
<?php echo $this->getHintHtml() ?>
121121
</div>
122122

123-
<script type="text/javascript">
123+
<script>
124124
require(['jquery'], function(jQuery){
125125

126126
(function($) {

app/code/Magento/Backend/view/adminhtml/templates/system/cache/edit.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<form action="<?php echo $this->getSaveUrl() ?>" method="post" id="config-edit-form" enctype="multipart/form-data">
1818
<?php echo $this->getBlockHtml('formkey')?>
1919

20-
<script type="text/javascript">
20+
<script>
2121
function setCacheAction(id, button) {
2222
$(id).value = button.id;
2323
configForm.submit();
@@ -79,7 +79,7 @@
7979
</fieldset>
8080
</div>
8181
</form>
82-
<script type="text/javascript">
82+
<script>
8383
require(["jquery","mage/mage"],function($){
8484
$('#config-edit-form').mage('form').mage('validation');
8585
});

app/code/Magento/Backend/view/adminhtml/templates/system/config/edit.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<?php echo $this->getChildHtml('form') ?>
2020
</div>
2121
</form>
22-
<script type="text/javascript">
22+
<script>
2323
require([
2424
"jquery",
2525
"jquery/jquery.hashchange",

app/code/Magento/Backend/view/adminhtml/templates/system/config/form/field/array.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $_colspan = $this->isAddAfter() ? 2 : 1;
3333
</table>
3434
<input type="hidden" name="<?php echo $this->getElement()->getName(); ?>[__empty]" value="" />
3535

36-
<script type="text/javascript">
36+
<script>
3737

3838
// create row creator
3939
var arrayRow<?php echo $_htmlId ?> = {

app/code/Magento/Backend/view/adminhtml/templates/system/config/js.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66
?>
7-
<script type="text/javascript">
7+
<script>
88
//<![CDATA[
99
var freeModel = Class.create();
1010
freeModel.prototype = {

app/code/Magento/Backend/view/adminhtml/templates/system/config/system/storage/media/synchronize.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<?php /* @var $this \Magento\Backend\Block\System\Config\System\Storage\Media\Synchronize */ ?>
99

10-
<script type="text/javascript">
10+
<script>
1111
require([
1212
'jquery',
1313
'prototype',

app/code/Magento/Backend/view/adminhtml/templates/system/design/edit.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<form action="<?php echo $this->getSaveUrl() ?>" method="post" id="design-edit-form">
88
<?php echo $this->getBlockHtml('formkey')?>
99
</form>
10-
<script type="text/javascript">
10+
<script>
1111
require([
1212
"jquery",
1313
"mage/mage"

app/code/Magento/Backend/view/adminhtml/templates/system/shipping/applicable_country.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66
?>
7-
<script type="text/javascript">
7+
<script>
88
//<![CDATA[
99
var CountryModel = Class.create();
1010
CountryModel.prototype = {

app/code/Magento/Backend/view/adminhtml/templates/system/variable/js.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66
?>
7-
<script type="text/javascript">
7+
<script>
88
//<![CDATA[
99

1010
function toggleValueElement(element) {

app/code/Magento/Backend/view/adminhtml/templates/widget/accordion.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $items = $this->getItems();
1616
<?php echo $this->getChildHtml($_item->getId()) ?>
1717
<?php endforeach ?>
1818
</dl>
19-
<script type="text/javascript">
19+
<script>
2020
require([
2121
'mage/adminhtml/accordion'
2222
], function(){

app/code/Magento/Backend/view/adminhtml/templates/widget/button/split.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $_helper = $this->helper('Magento\Core\Helper\Data');
4040
<?php endif; ?>
4141
</div>
4242

43-
<script type="text/javascript">
43+
<script>
4444
require(['jquery'], function($){
4545
$('.actions-split')
4646
.on('click.splitDefault', '.action-default', function() {

app/code/Magento/Backend/view/adminhtml/templates/widget/form/container.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<p class="form-buttons"><?php echo $this->getButtonsHtml('footer') ?></p>
1616
</div>
1717
<?php endif; ?>
18-
<script type="text/javascript">
18+
<script>
1919
require([
2020
'jquery',
2121
'mage/backend/form',

app/code/Magento/Backend/view/adminhtml/templates/widget/form/element.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<span class="form_row">
5959
<label for="<?php echo $element->getHtmlId() ?>"><?php echo $element->getLabel() ?>:</label>
6060
<script type="text/javascript" src="<?php echo $this->getViewFileUrl('tiny_mce/tiny_mce.js') ?>"></script>
61-
<script type="text/javascript">
61+
<script>
6262

6363
//<![CDATA[
6464
tinyMCE.init({
@@ -102,7 +102,7 @@
102102
<?php break;
103103
} ?>
104104
<?php if ($element->getScript()): ?>
105-
<script type="text/javascript">
105+
<script>
106106
<?php echo $element->getScript() ?>
107107
</script>
108108
<?php endif; ?>

app/code/Magento/Backend/view/adminhtml/templates/widget/form/element/gallery.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@
4141
<?php endif; ?>
4242

4343
<?php if ($i == 0): ?>
44-
<script type="text/javascript">
44+
<script>
4545
document.getElementById("gallery_thead").style.visibility="hidden";
4646
</script>
4747
<?php endif; ?>
4848

4949
</tbody></table>
5050

51-
<script type="text/javascript">
51+
<script>
5252
//<![CDATA[
5353
id = 0;
5454
num_of_images = <?php echo $i ?>;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ $numColumns = sizeof($this->getColumns());
133133
<?php endif ?>
134134
<?php if ($this->canDisplayContainer()): ?>
135135
</div>
136-
<script type="text/javascript">
136+
<script>
137137
var deps = ['mage/adminhtml/grid'];
138138

139139
<?php if (strpos($this->getRowClickCallback(), 'order.') !== false): ?>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ $numColumns = sizeof($this->getColumns());
223223
</div>
224224
<?php if ($this->canDisplayContainer()): ?>
225225
</div>
226-
<script type="text/javascript">
226+
<script>
227227
var deps = ['mage/adminhtml/grid'];
228228

229229
<?php if (strpos($this->getRowClickCallback(), 'order.') !== false): ?>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
</span>
6464
</div>
6565
</div>
66-
<script type="text/javascript">
66+
<script>
6767

6868
require(['jquery'], function($){
6969
'use strict';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
</span>
6565
</div>
6666
</div>
67-
<script type="text/javascript">
67+
<script>
6868
require(['jquery'], function($){
6969
'use strict';
7070
$('#massaction-select').change(function () {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<?php $_id = 'id_' . md5(microtime()) ?>
1313
<?php $formId = $this->getFormId()?>
1414
<?php if (!empty($formId)) :?>
15-
<script type="text/javascript">
15+
<script>
1616
Event.observe(window, "load", function(){
1717
var serializeInput = document.createElement('input');
1818
serializeInput.type = 'hidden';
@@ -28,7 +28,7 @@
2828
</script>
2929
<?php else :?>
3030
<input type="hidden" name="<?php echo $this->getInputElementName()?>" value="" id="<?php echo $_id?>" />
31-
<script type="text/javascript">
31+
<script>
3232
require([
3333
'mage/adminhtml/grid'
3434
], function(){

0 commit comments

Comments
 (0)