From c4a0e1e9237fee26ca6774665a4b9ec088988ce4 Mon Sep 17 00:00:00 2001 From: perploug Date: Tue, 12 Nov 2013 19:01:24 +0100 Subject: [PATCH] changes options to actions --- .../src/views/content/content.edit.controller.js | 11 +++++++++-- .../src/views/content/edit.html | 13 ++++++------- .../src/views/datatype/edit.html | 11 ++++++----- src/Umbraco.Web.UI.Client/src/views/media/edit.html | 3 ++- .../src/views/member/edit.html | 3 ++- src/Umbraco.Web.UI/umbraco/config/lang/en.xml | 3 ++- 6 files changed, 27 insertions(+), 17 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/content/content.edit.controller.js b/src/Umbraco.Web.UI.Client/src/views/content/content.edit.controller.js index 2b1c693b2a..11bfe2a66b 100644 --- a/src/Umbraco.Web.UI.Client/src/views/content/content.edit.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/content/content.edit.controller.js @@ -6,7 +6,7 @@ * @description * The controller for the content editor */ -function ContentEditController($scope, $routeParams, $q, $timeout, $window, contentResource, navigationService, notificationsService, angularHelper, serverValidationManager, contentEditingHelper, treeService, fileManager, formHelper, umbRequestHelper) { +function ContentEditController($scope, $routeParams, $q, $timeout, $window, contentResource, navigationService, notificationsService, angularHelper, serverValidationManager, contentEditingHelper, treeService, fileManager, formHelper, umbRequestHelper, keyboardService) { $scope.defaultButton = null; $scope.subButtons = []; @@ -63,6 +63,8 @@ function ContentEditController($scope, $routeParams, $q, $timeout, $window, cont switch (ch) { case "U": //publish action + keyboardService.bind("ctrl+p", $scope.saveAndPublish); + return { letter: ch, labelKey: "buttons_saveAndPublish", @@ -71,14 +73,17 @@ function ContentEditController($scope, $routeParams, $q, $timeout, $window, cont }; case "H": //send to publish + keyboardService.bind("ctrl+p", $scope.sendToPublish); + return { letter: ch, labelKey: "buttons_saveToPublish", handler: $scope.sendToPublish, - hotKey: "ctrl+t" + hotKey: "ctrl+p" }; case "A": //save + keyboardService.bind("ctrl+s", $scope.save); return { letter: ch, labelKey: "buttons_save", @@ -87,6 +92,8 @@ function ContentEditController($scope, $routeParams, $q, $timeout, $window, cont }; case "Z": //unpublish + keyboardService.bind("ctrl+u", $scope.unPublish); + return { letter: ch, labelKey: "content_unPublish", diff --git a/src/Umbraco.Web.UI.Client/src/views/content/edit.html b/src/Umbraco.Web.UI.Client/src/views/content/edit.html index a6e729f3ee..e35d50ff76 100644 --- a/src/Umbraco.Web.UI.Client/src/views/content/edit.html +++ b/src/Umbraco.Web.UI.Client/src/views/content/edit.html @@ -3,6 +3,7 @@ ng-show="loaded" ng-submit="save()" val-form-manager> + @@ -15,8 +16,7 @@ ng-model="content.name" /> -
- +
@@ -25,7 +25,7 @@ -
- + \ No newline at end of file diff --git a/src/Umbraco.Web.UI.Client/src/views/datatype/edit.html b/src/Umbraco.Web.UI.Client/src/views/datatype/edit.html index 6bcb06249d..888038ff9d 100644 --- a/src/Umbraco.Web.UI.Client/src/views/datatype/edit.html +++ b/src/Umbraco.Web.UI.Client/src/views/datatype/edit.html @@ -9,10 +9,10 @@
+ class="umb-headline" + localize="placeholder" + placeholder="@placeholders_entername" + ng-model="content.name" />