Files
Umbraco-CMS/src/Umbraco.Web.UI.Client/src/views/stylesheets/create.controller.js

25 lines
809 B
JavaScript

(function () {
"use strict";
function StyleSheetsCreateController($scope, $location, navigationService) {
var vm = this;
var node = $scope.dialogOptions.currentNode;
vm.createFile = createFile;
vm.createRichtextStyle = createRichtextStyle;
function createFile() {
$location.path("/settings/stylesheets/edit/" + node.id).search("create", "true");
navigationService.hideMenu();
}
function createRichtextStyle() {
$location.path("/settings/stylesheets/edit/" + node.id).search("create", "true").search("rtestyle", "true");
navigationService.hideMenu();
}
}
angular.module("umbraco").controller("Umbraco.Editors.StyleSheets.CreateController", StyleSheetsCreateController);
})();