Skip to content

Commit c95eedc

Browse files
jissereitsmaRahulKachhadia
authored andcommitted
Move buttons definition to separate file
1 parent b1f7b25 commit c95eedc

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

app/code/Magento/Ui/view/base/web/js/form/adapter.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,11 @@
55
define([
66
'jquery',
77
'underscore'
8-
], function ($, _) {
8+
'./adapter/buttons'
9+
], function ($, _, buttons) {
910
'use strict';
1011

11-
var buttons = {
12-
'reset': '#reset',
13-
'save': '#save',
14-
'saveAndContinue': '#save_and_continue'
15-
},
16-
selectorPrefix = '',
12+
var selectorPrefix = '',
1713
eventPrefix;
1814

1915
/**
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* Copyright © Magento, Inc. All rights reserved.
3+
* See COPYING.txt for license details.
4+
*/
5+
6+
/**
7+
* @api
8+
*/
9+
define(function () {
10+
return {
11+
'reset': '#reset',
12+
'save': '#save',
13+
'saveAndContinue': '#save_and_continue'
14+
}
15+
});

0 commit comments

Comments
 (0)