Skip to content

Commit

Permalink
Fix for save not always working (#95)
Browse files Browse the repository at this point in the history
* Fix for save not always working

* Revert notification
  • Loading branch information
patrickdemooij9 authored Jul 8, 2022
1 parent 5ba2381 commit c7f8b3c
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
}

function save() {
$http.post("backoffice/SeoToolkit/SeoSettings/Set",
return $http.post("backoffice/SeoToolkit/SeoSettings/Set",
{
contentTypeId: $scope.model.id,
enabled: vm.model.enableSeoSettings
Expand All @@ -58,11 +58,11 @@

$scope.$on("formSubmitting",
function () {
save();

if (vm.model.enableSeoSettings) {
$scope.$broadcast("seoSettingsSubmitting");
}
save().then(function() {
if (vm.model.enableSeoSettings) {
$scope.$broadcast("seoSettingsSubmitting");
}
});
});

init();
Expand Down

0 comments on commit c7f8b3c

Please sign in to comment.