ContextMenuActions.disableRecord = function (table, uid) {
top.TYPO3.Backend.ContentContainer.setUrl(
top.TYPO3.settings.RecordCommit.moduleUrl + '&data[' + table + '][' + uid + '][hidden]=1&prErr=1&redirect=' + ContextMenuActions.getReturnUrl()
- );
- top.TYPO3.Backend.NavigationContainer.PageTree.refreshTree.defer(500);
+ ).on('load', function () {
+ top.TYPO3.Backend.NavigationContainer.PageTree.refreshTree();
+ });
};
ContextMenuActions.enableRecord = function (table, uid) {
top.TYPO3.Backend.ContentContainer.setUrl(
top.TYPO3.settings.RecordCommit.moduleUrl + '&data[' + table + '][' + uid + '][hidden]=0&prErr=1&redirect=' + ContextMenuActions.getReturnUrl()
- );
- top.TYPO3.Backend.NavigationContainer.PageTree.refreshTree.defer(500);
+ ).on('load', function () {
+ top.TYPO3.Backend.NavigationContainer.PageTree.refreshTree();
+ });
};
ContextMenuActions.deleteRecord = function (table, uid) {
if (e.target.name === 'delete') {
top.TYPO3.Backend.ContentContainer.setUrl(
top.TYPO3.settings.RecordCommit.moduleUrl + '&redirect=' + ContextMenuActions.getReturnUrl() + '&cmd[' + table + '][' + uid + '][delete]=1&prErr=1'
- );
- if (table === 'pages' && top.TYPO3.Backend.NavigationContainer.PageTree) {
- top.TYPO3.Backend.NavigationContainer.PageTree.refreshTree.defer(500);
- }
+ ).on('load', function () {
+ if (table === 'pages' && top.TYPO3.Backend.NavigationContainer.PageTree) {
+ top.TYPO3.Backend.NavigationContainer.PageTree.refreshTree();
+ }
+ });
}
Modal.dismiss();
});
top.TYPO3.Backend.ContentContainer.setUrl(
top.TYPO3.settings.RecordCommit.moduleUrl + url
- );
- if (table === 'pages' && top.TYPO3.Backend.NavigationContainer.PageTree) {
- top.TYPO3.Backend.NavigationContainer.PageTree.refreshTree.defer(500);
- }
+ ).on('load', function () {
+ if (table === 'pages' && top.TYPO3.Backend.NavigationContainer.PageTree) {
+ top.TYPO3.Backend.NavigationContainer.PageTree.refreshTree();
+ }
+ });
};
if (!$anchorElement.data('title')) {
performPaste();
};
return ContextMenuActions;
-});
\ No newline at end of file
+});