Skip to content

Commit 77d11a2

Browse files
author
Denys Rul
committed
MAGETWO-32493: Remove bootstrap.js files
- Remove unnecessary dependencies from a various bootstrap files
1 parent 9283a3e commit 77d11a2

File tree

7 files changed

+7
-9
lines changed

7 files changed

+7
-9
lines changed

app/code/Magento/Backend/view/adminhtml/web/js/bootstrap/editor.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55
*/
66
require([
77
"Magento_Backend/variables",
8-
"mage/adminhtml/browser",
9-
"mage/adminhtml/wysiwyg/widget"
8+
"mage/adminhtml/browser"
109
]);

app/code/Magento/Sales/view/adminhtml/web/js/bootstrap/order-create-index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@
44
*/
55

66
require([
7-
// From Magento_Sales::sales_order_create_index.xml
8-
"Magento_Sales/order/create/giftmessage",
9-
"Magento_Sales/order/giftoptions_tooltip"
7+
"Magento_Sales/order/create/giftmessage"
108
]);

app/code/Magento/Sales/view/adminhtml/web/order/giftoptions_tooltip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
*/
1010
define(["prototype"], function(){
1111

12+
var GiftOptionsTooltip = Class.create();
1213

13-
window.GiftOptionsTooltip = Class.create();
1414
GiftOptionsTooltip.prototype = {
1515
_tooltipLines: [],
1616
_tooltipWindow: null,

app/code/Magento/Theme/view/adminhtml/templates/tabs/fieldset/js.phtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
require([
4343
"jquery",
4444
"jquery/ui",
45+
"Magento_Theme/js/sortable",
4546
"Magento_Theme/js/custom-js-list"
4647
], function(jQuery){
4748

app/code/Magento/Theme/view/adminhtml/templates/tabs/js.phtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
require([
1212
"jquery",
1313
"jquery/file-uploader",
14+
"Magento_Theme/js/sortable",
1415
"mage/translate"
1516
], function($){
1617

app/code/Magento/Theme/view/adminhtml/web/js/bootstrap.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66
require([
77
"jquery/fileUploader/jquery.fileupload-ui",
88
"mage/adminhtml/browser",
9-
"Magento_Theme/js/form",
10-
"Magento_Theme/js/sortable"
9+
"Magento_Theme/js/form"
1110
]);

app/code/Magento/Theme/view/adminhtml/web/js/sortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ define([
4444
data.item.insertAfter(data.item.next());
4545
}
4646
});
47-
47+
4848
return $.mage.sortable;
4949
});

0 commit comments

Comments
 (0)