Skip to content

Commit be8ecdb

Browse files
committed
MAGETWO-71048: WIP: Admin Config Search #10335
- address UX request for config search
1 parent d82edbc commit be8ecdb

File tree

1 file changed

+5
-9
lines changed
  • app/code/Magento/Config/view/adminhtml/templates/system/config

1 file changed

+5
-9
lines changed

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

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
?>
2020
<style>
2121
.highlighted {
22-
background-color: rgb(255, 255, 153)!important;
22+
background-color: #DFF7FF!important;
2323
}
2424
</style>
2525
<form action="<?= /* @escapeNotVerified */ $block->getSaveUrl() ?>" method="post" id="config-edit-form" enctype="multipart/form-data">
@@ -58,18 +58,14 @@ require([
5858
var groupElement = jQuery('#' + section + '_' + group);
5959

6060
var parentSection = groupElement.parents('.section-config');
61+
parentSection.addClass('highlighted');
62+
setTimeout(function() {
63+
parentSection.removeClass('highlighted', 2000, "easeInBack");
64+
}, 3000);
6165
if (!parentSection.hasClass('active')) {
6266
Fieldset.toggleCollapse(section + '_' + group);
6367
}
6468
}
65-
if ((typeof group !== 'undefined') && (typeof field !== 'undefined')) {
66-
var fieldElement = jQuery('#' + section + '_' + group + '_' + field);
67-
fieldElement.focus();
68-
fieldElement.addClass('highlighted');
69-
setTimeout(function() {
70-
fieldElement.removeClass('highlighted', 2000, "easeInBack");
71-
}, 3000);
72-
}
7369
},
7470
getUp: function (element, tag) {
7571
var $element = Element.extend(element);

0 commit comments

Comments
 (0)