Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Duplicati/Server/webroot/ngax/scripts/directives/keyboardHandlers.js')
-rw-r--r--Duplicati/Server/webroot/ngax/scripts/directives/keyboardHandlers.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/Duplicati/Server/webroot/ngax/scripts/directives/keyboardHandlers.js b/Duplicati/Server/webroot/ngax/scripts/directives/keyboardHandlers.js
index 621af6318..ab178fa2a 100644
--- a/Duplicati/Server/webroot/ngax/scripts/directives/keyboardHandlers.js
+++ b/Duplicati/Server/webroot/ngax/scripts/directives/keyboardHandlers.js
@@ -1,12 +1,12 @@
backupApp.directive('ngOnEnterPress', function () {
return function (scope, element, attrs) {
element.bind("keydown keypress search", function (event) {
- if (event.keyCode == 13 || event.type == "search") {
- scope.$apply(function (){
- scope.$eval(attrs.ngOnEnterPress);
- });
- event.preventDefault();
- }
+ if (event.keyCode == 13 || event.type == "search") {
+ scope.$apply(function (){
+ scope.$eval(attrs.ngOnEnterPress);
+ });
+ event.preventDefault();
+ }
});
};
});
@@ -14,12 +14,12 @@ backupApp.directive('ngOnEnterPress', function () {
backupApp.directive('ngOnEscapePress', function () {
return function (scope, element, attrs) {
element.bind("keydown keypress reset", function (event) {
- if (event.keyCode == 27) {
- scope.$apply(function (){
- scope.$eval(attrs.ngOnEscapePress);
- });
- event.preventDefault();
- }
+ if (event.keyCode == 27) {
+ scope.$apply(function (){
+ scope.$eval(attrs.ngOnEscapePress);
+ });
+ event.preventDefault();
+ }
});
};
});