missing file commit

This commit is contained in:
Shannon
2013-06-10 14:48:29 -02:00
parent b12e59cbac
commit c8df4a08f9

View File

@@ -1,22 +0,0 @@
angular.module("umbraco")
.controller("Umbraco.Editors.ContentEditController",
function ($scope, $routeParams, contentResource, notificationsService) {
if($routeParams.create)
$scope.content = contentResource.getContentScaffold($routeParams.id, $routeParams.doctype);
else
$scope.content = contentResource.getContent($routeParams.id);
$scope.saveAndPublish = function (cnt) {
cnt.publishDate = new Date();
contentResource.publishContent(cnt);
notificationsService.success("Published", "Content has been saved and published");
};
$scope.save = function (cnt) {
cnt.updateDate = new Date();
contentResource.saveContent(cnt);
notificationsService.success("Saved", "Content has been saved");
};
});