diff --git a/src/Umbraco.Web.UI.Client/src/less/panel.less b/src/Umbraco.Web.UI.Client/src/less/panel.less index 29bd86c8fc..a502001975 100644 --- a/src/Umbraco.Web.UI.Client/src/less/panel.less +++ b/src/Umbraco.Web.UI.Client/src/less/panel.less @@ -71,7 +71,7 @@ margin:0px 20px; } -.umb-btn-toolbar .dimmed{ +.umb-btn-toolbar .dimmed, .umb-dimmed{ opacity: 0.6; } diff --git a/src/Umbraco.Web.UI.Client/src/views/content/content.edit.controller.js b/src/Umbraco.Web.UI.Client/src/views/content/content.edit.controller.js index 5d1bba3017..a47a066baa 100644 --- a/src/Umbraco.Web.UI.Client/src/views/content/content.edit.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/content/content.edit.controller.js @@ -111,6 +111,8 @@ function ContentEditController($scope, $routeParams, $q, $timeout, $window, appS function performSave(args) { var deferred = $q.defer(); + $scope.busy = true; + if (formHelper.submitForm({ scope: $scope, statusMessage: args.statusMessage })) { args.saveMethod($scope.content, $routeParams.create, fileManager.getFiles()) @@ -125,6 +127,7 @@ function ContentEditController($scope, $routeParams, $q, $timeout, $window, appS }); editorState.set($scope.content); + $scope.busy = false; configureButtons(data); @@ -143,6 +146,7 @@ function ContentEditController($scope, $routeParams, $q, $timeout, $window, appS }); editorState.set($scope.content); + $scope.busy = false; deferred.reject(err); }); @@ -241,10 +245,14 @@ function ContentEditController($scope, $routeParams, $q, $timeout, $window, appS /** this method is called for all action buttons and then we proxy based on the btn definition */ $scope.performAction = function(btn) { + if (!btn || !angular.isFunction(btn.handler)) { throw "btn.handler must be a function reference"; } - btn.handler.apply(this); + + if(!$scope.busy){ + btn.handler.apply(this); + } }; } diff --git a/src/Umbraco.Web.UI.Client/src/views/content/edit.html b/src/Umbraco.Web.UI.Client/src/views/content/edit.html index a6fbdbf510..31cd1dd2f3 100644 --- a/src/Umbraco.Web.UI.Client/src/views/content/edit.html +++ b/src/Umbraco.Web.UI.Client/src/views/content/edit.html @@ -39,14 +39,14 @@ -