Skip to content

Commit

Permalink
Update build/media_source/com_menus/js/admin-item-edit.es6.js
Browse files Browse the repository at this point in the history
Co-authored-by: Dimitris Grammatikogiannis <dg@dgrammatiko.dev>
  • Loading branch information
C-Lodder and dgrammatiko committed Feb 9, 2024
1 parent 521d62d commit becc64a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build/media_source/com_menus/js/admin-item-edit.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ Joomla.submitbutton = (task, type) => {

document.getElementById('fieldtype').value = 'type';
} else {
document.querySelectorAll('#item-form input[name="jform[menutype]"]').forEach((item) => {
item.value = type;
});
document.querySelectorAll('#item-form input[name="jform[menutype]"]').forEach((item) => item.value = type);
}

Joomla.submitform('item.setType', document.getElementById('item-form'));
Expand Down

0 comments on commit becc64a

Please sign in to comment.