Skip to content

Commit

Permalink
Fixed issue with creating new page menu items
Browse files Browse the repository at this point in the history
Signed-off-by: Sam <[email protected]>
  • Loading branch information
sampoyigi committed Mar 29, 2023
1 parent 4264b39 commit abdafb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assets/js/menuitemseditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

$(window).on('recordEditorModalShown', $.proxy(this.onModalLoaded, this))

$(document).on('change', 'select[data-control="menu-item-type"]', $.proxy(this.onChangeType, this))
$(document).on('change', 'select[data-toggle="menu-item-type"]', $.proxy(this.onChangeType, this))
}

MenuItemsEditor.prototype.onChangeType = function (event) {
Expand Down Expand Up @@ -86,7 +86,7 @@
this.$modalElement = $modalEl

$modalEl.find('.form-group-hide').hide()
$modalEl.find('select[data-control="menu-item-type"]').trigger('change')
$modalEl.find('select[data-toggle="menu-item-type"]').trigger('change')
}

MenuItemsEditor.prototype.loadProperties = function (event) {
Expand Down
2 changes: 1 addition & 1 deletion models/config/menuitem.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
'type' => 'select',
'span' => 'right',
'attributes' => [
'data-control' => 'menu-item-type',
'data-toggle' => 'menu-item-type',
'data-handler' => 'onGetMenuItemTypeInfo',
],
],
Expand Down

0 comments on commit abdafb4

Please sign in to comment.