We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d254534 + 36e50cd commit 9e9d3ecCopy full SHA for 9e9d3ec
jquery-menu-editor.js
@@ -1114,7 +1114,7 @@ function MenuEditor(idSelector, options) {
1114
$form.find("[name=icon]").val(e.icon);
1115
});
1116
1117
- $(document).on('click', '.btnRemove', function (e) {
+ $main.on('click', '.btnRemove', function (e) {
1118
e.preventDefault();
1119
if (confirm(settings.textConfirmDelete)) {
1120
var list = $(this).closest('ul');
@@ -1131,7 +1131,7 @@ function MenuEditor(idSelector, options) {
1131
}
1132
1133
1134
- $(document).on('click', '.btnEdit', function (e) {
+ $main.on('click', '.btnEdit', function (e) {
1135
1136
itemEditing = $(this).closest('li');
1137
editItem(itemEditing);
0 commit comments