In file ~/Umbraco/Js/umbraco.services.js I modified function contentEditingHelper.
In line 869 (for Umbraco 7.11.0 ) I had insert next code:
self.handleSuccessfulSave({
scope: args.scope,
savedContent: data,
rebindCallback: function () {
rebindCallback.apply(self, [
args.content,
data
]);
/* >>> THIS IS INSERTED CODE */
if (data.documentType.alias === 'ServiceJob') {
window.location.href = '/umbraco/#/content/content/edit/' + data.id + '/';
}
/* <<< END OF INSERTED CODE */
}
});
This working but not very solution.
Is there any way to inject this code without modification core umbraco js files?
I'm worried what I'm lost this code during Umbraco update.
Force refresh backend page after save & publish
Hello!
Is there any possibility to force refresh backend page after successful save & publish?
I was trying to use
Umbraco.Web.UI.Pages.ClientTool
with no any luck.I'll just need to refresh page on come conditions in
IApplicationEventHandler
.Thx! ;)
Ok. Here is my hack
In file
~/Umbraco/Js/umbraco.services.js
I modified functioncontentEditingHelper
. In line869
(for Umbraco 7.11.0 ) I had insert next code:This working but not very solution. Is there any way to inject this code without modification core umbraco js files? I'm worried what I'm lost this code during Umbraco update.
Matt have wrote a article about tweaking the backoffice https://24days.in/umbraco-cms/2015/umbraco-7-back-office-tweaks/
Maybe you can do it with a interceptor look at tweaking logic
Thx! Awesome technique!
Here my solution:
Exactly what I came here to find. I was having the same issue with Umbraco not displaying property values that had been updated in the Saving event.
However, I couldn't get this to work:
I had to use
location.href
to make it work.You can just use
location.reload()
if you want to stay on the same page ;-)Thanks! Good point!
is working on a reply...