Fixes: U4-3404 Pressing preview should save the changes and then open preview window
This commit is contained in:
@@ -262,14 +262,9 @@ function ContentEditController($scope, $routeParams, $q, $timeout, $window, appS
|
||||
};
|
||||
|
||||
$scope.preview = function(content){
|
||||
if(!content.id){
|
||||
$scope.save().then(function(data){
|
||||
$window.open('dialogs/preview.aspx?id='+data.id,'umbpreview');
|
||||
});
|
||||
}
|
||||
else {
|
||||
$window.open('dialogs/preview.aspx?id='+content.id,'umbpreview');
|
||||
}
|
||||
$scope.save().then(function (data) {
|
||||
$window.open('dialogs/preview.aspx?id=' + data.id, 'umbpreview');
|
||||
});
|
||||
};
|
||||
|
||||
/** this method is called for all action buttons and then we proxy based on the btn definition */
|
||||
|
||||
Reference in New Issue
Block a user