File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
app/code/Magento/Backend/view/adminhtml/templates/page Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 10
10
<?php echo $ this ->getLocaleSelect (); ?>
11
11
</div>
12
12
<script>
13
- require([
14
- 'prototype'
15
- ], function () {
16
- function setInterfaceLanguage(event) {
17
- var elem = Event.element(event);
18
- if (elem) {
19
- window.location.href = '<?php echo $ this ->getChangeLocaleUrl () ?> locale/' + elem.value + '/<?php echo $ this ->getUrlForReferer () ?> ';
20
- }
13
+ (function () {
14
+ 'use strict';
15
+
16
+ var elem = document.getElementById('footer_interface_locale');
17
+
18
+ function onChange() {
19
+ window.location.href = '<?php echo $ this ->getChangeLocaleUrl () ?> locale/' + elem.value + '/<?php echo $ this ->getUrlForReferer () ?> ';
21
20
}
22
- Event.observe('footer_interface_locale', 'change', setInterfaceLanguage);
23
- });
21
+
22
+ elem.addEventListener('change', onChange);
23
+ })();
24
24
</script>
25
25
</div>
You can’t perform that action at this time.
0 commit comments