* fix: Media Picker creates duplicated folders (#12918) * Fix: Media section multiple content creation (#12918)
This commit is contained in:
@@ -218,6 +218,9 @@ angular.module("umbraco")
|
||||
}
|
||||
|
||||
function submitFolder() {
|
||||
if ($scope.model.creatingFolder) {
|
||||
return;
|
||||
}
|
||||
if ($scope.model.newFolderName) {
|
||||
$scope.model.creatingFolder = true;
|
||||
mediaResource
|
||||
|
||||
@@ -176,6 +176,10 @@ function mediaEditController($scope, $routeParams, $location, $http, $q, appStat
|
||||
|
||||
$scope.save = function () {
|
||||
|
||||
if($scope.page.saveButtonState == "busy"){
|
||||
return;
|
||||
}
|
||||
|
||||
if (formHelper.submitForm({ scope: $scope })) {
|
||||
|
||||
$scope.page.saveButtonState = "busy";
|
||||
|
||||
Reference in New Issue
Block a user