#4068 - Changed save event triggered when save dialog is opened. save is still broadcasted on the actual save.
Changed the grid event listener to only execute on `save` events
This commit is contained in:
@@ -617,7 +617,7 @@
|
||||
// TODO: Add "..." to save button label if there are more than one variant to publish - currently it just adds the elipses if there's more than 1 variant
|
||||
if (isContentCultureVariant()) {
|
||||
//before we launch the dialog we want to execute all client side validations first
|
||||
if (formHelper.submitForm({ scope: $scope, action: "save" })) {
|
||||
if (formHelper.submitForm({ scope: $scope, action: "openSaveDialog" })) {
|
||||
|
||||
var dialog = {
|
||||
parentScope: $scope,
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
//dealing with requests:
|
||||
'request': function(config) {
|
||||
if(config.method === "POST"){
|
||||
config.transformRequest.push(transform);
|
||||
transform(config.data);
|
||||
}
|
||||
|
||||
return config;
|
||||
|
||||
@@ -909,9 +909,9 @@ angular.module("umbraco")
|
||||
// needs to be merged in at runtime to ensure that the real config values are used
|
||||
// if they are ever updated.
|
||||
|
||||
var unsubscribe = $scope.$on("formSubmitting", function () {
|
||||
|
||||
if ($scope.model.value && $scope.model.value.sections) {
|
||||
var unsubscribe = $scope.$on("formSubmitting", function (e, args) {
|
||||
|
||||
if (args.action === "save" && $scope.model.value && $scope.model.value.sections) {
|
||||
_.each($scope.model.value.sections, function(section) {
|
||||
if (section.rows) {
|
||||
_.each(section.rows, function (row) {
|
||||
|
||||
Reference in New Issue
Block a user