in Dataset/JS/AngularCosmoPage/pageCtrl.js [290:319]
function newPagePromise(data){
var contentID = data.id;
// Reset variables to edit page
$scope.page.id = contentID;
$scope.autoURL = false;
// Save new tags
if($scope.page.tags){
angular.forEach($scope.page.tags, function(value){
REST.contentTags.save({ contentID: contentID, tag: value });
});
}
// Save page as a revision
REST.contentRevisions.save({
contentID: contentID,
title: $scope.page.title,
description: $scope.page.description,
header: Page.header,
subheader: Page.subheader,
featured: featured,
body: Page.body,
url: $scope.page.url,
type: $scope.page.type,
published: $scope.page.publish,
published_date: scheduleDate,
author: Users.id
}, saveRevisionPromise);
}