plugin update (wp-media-folder)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -340,14 +340,16 @@ var wpmfFoldersModule = void 0,
|
||||
}
|
||||
};
|
||||
|
||||
// Create an observer instance linked to the callback function
|
||||
const observer = new MutationObserver(callback);
|
||||
if (targetNode){
|
||||
// Create an observer instance linked to the callback function
|
||||
const observer = new MutationObserver(callback);
|
||||
|
||||
// Start observing the target node for configured mutations
|
||||
observer.observe(targetNode, config);
|
||||
|
||||
// Start observing the target node for configured mutations
|
||||
observer.observe(targetNode, config);
|
||||
|
||||
// Later, you can stop observing
|
||||
// observer.disconnect();
|
||||
// Later, you can stop observing
|
||||
// observer.disconnect();
|
||||
}
|
||||
|
||||
// Add the creation gallery from folder button
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ var wpmfSnackbarModule = void 0;
|
||||
// Reset the close function as we've done an undo
|
||||
wpmfSnackbarModule.snackbar_ids[snack_id].onClose = function () {};
|
||||
// Finally close the snackbar
|
||||
wpmfSnackbarModule.snackbar_ids[snack_id].close(snack_id);
|
||||
wpmfSnackbarModule.close(snack_id);
|
||||
});
|
||||
|
||||
Object.keys(wpmfSnackbarModule.snackbar_ids).map(function (snack_id, index) {
|
||||
|
||||
Reference in New Issue
Block a user