Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hey there !
Still working on a custom extension for umbraco. Is there a way to reload the current page after doing an action? Something like F5 would do...
Tried this :
surveyPluginResource.addGroupeQuestions($scope.questionnaire.Id, $scope.newGroupeQuestions).then( function(response) { $scope.questionnaire = response.data; navigationService.syncTree({ tree: 'survey', path: [-1, -1], forceReload: true }).then( function(syncArgs) { navigationService.reloadNode(syncArgs.node); $route.reload(); }); });
But my new groupe Question is inserted at the top of the page, and if I refresh, it goes back to the end of the page. Somehow disturbing for end user I guess :D
Hi Fant0hm
You should be able to achieve this with:
window.location.reload(true);
You could also do it like this:
$location.path('content/content/edit/' + editorState.current.id);
Just make sure you pass in $location and editorState to the constructor for the controller.
$location
editorState
Kind regards
Paul
Hi Paul ! Thanks for your time, it works like a charm :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
reaload entire page on action
Hey there !
Still working on a custom extension for umbraco. Is there a way to reload the current page after doing an action? Something like F5 would do...
Tried this :
But my new groupe Question is inserted at the top of the page, and if I refresh, it goes back to the end of the page. Somehow disturbing for end user I guess :D
Hi Fant0hm
You should be able to achieve this with:
You could also do it like this:
Just make sure you pass in
$location
andeditorState
to the constructor for the controller.Kind regards
Paul
Hi Paul ! Thanks for your time, it works like a charm :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.