Skip to content

Commit b3dc9ee

Browse files
committed
AC-1963: Fix deprecated jquery code in magento2 CE
- Removed other prototype related changes
1 parent 3a27cd3 commit b3dc9ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/adminhtml/tools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function toggleValueElements(checkbox, container, excludedElements, checked) {
152152
*/
153153
function submitAndReloadArea(area, url) {
154154
if ($(area)) {
155-
var fields = $(area).on('select', 'input', 'select', 'textarea');
155+
var fields = $(area).select('input', 'select', 'textarea');
156156
var data = Form.serializeElements(fields, true);
157157

158158
url += url.match(new RegExp('\\?')) ? '&isAjax=true' : '?isAjax=true';

0 commit comments

Comments
 (0)