-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Description
when using dialog, it duplicates the initialization and contents of selected element for dialog, the element is loaded from ajax so i need to use remove() first before re-initialization
jQuery 3.7.1
jQuery-UI 1.13.3
if ($('div#salary-table-dialog.ui-dialog-content').length > 0) {
$('div#salary-table-dialog.ui-dialog-content').remove();
}
if ($('div#position-form-dialog.ui-dialog-content').length > 0) {
$('div#position-form-dialog.ui-dialog-content').remove();
}
$(".dialog").dialog({
autoOpen: false,
width: 1024,
modal: true
});
Metadata
Metadata
Assignees
Labels
No labels