diff --git a/angular_app/event-tickets.html b/angular_app/event-tickets.html index 581ce76..09973e3 100644 --- a/angular_app/event-tickets.html +++ b/angular_app/event-tickets.html @@ -28,7 +28,7 @@
diff --git a/angular_app/js/controllers.js b/angular_app/js/controllers.js index 880b4d7..5906daf 100644 --- a/angular_app/js/controllers.js +++ b/angular_app/js/controllers.js @@ -705,6 +705,10 @@ eventManControllers.controller('EventTicketsCtrl', ['$scope', '$state', 'Event', } catch(err) {} }; + $scope.resetInput = function() { + $scope.query = ""; + }; + $scope.$on('$destroy', function() { $scope.EventUpdates && $scope.EventUpdates.close(); }); diff --git a/angular_app/js/directives.js b/angular_app/js/directives.js index 772ba98..5202b05 100644 --- a/angular_app/js/directives.js +++ b/angular_app/js/directives.js @@ -40,3 +40,16 @@ eventManApp.directive('resetFocus', function () { }; }); + +eventManApp.directive('escKey', function() { + return function(scope, element, attrs) { + element.bind('keydown keypress', function(evt) { + if (evt.which === 27) { + scope.$apply(function() { + scope.$eval(attrs.escKey); + }); + evt.preventDefault(); + } + }); + }; +}); diff --git a/static/css/eventman.css b/static/css/eventman.css index 4bb67c5..3ca4724 100644 --- a/static/css/eventman.css +++ b/static/css/eventman.css @@ -111,3 +111,7 @@ input[type=text].form-control, input[type=search].form-control { :not(.no-leave)#toast-container > div.ng-leave { transition-duration: .2s; } + +.query-input { + min-width: 400px; +} diff --git a/static/i18n/it_IT.json b/static/i18n/it_IT.json index 53af188..a35d606 100644 --- a/static/i18n/it_IT.json +++ b/static/i18n/it_IT.json @@ -28,7 +28,7 @@ "Attendees:": "Partecipanti:", "Registered:": "Registrato:", "Search:": "Cerca:", - "Name or email": "Nome o email", + "Name or email or key:value": "Nome, email o chiave:valore", "Show cancelled tickets": "Mostra i biglietti cancellati", "filtered item/s": "elementi filtrati", "export CSV": "esporta in CSV", @@ -91,6 +91,7 @@ "Join again this event": "Partecipa di nuovo a questo evento", "All Tickets": "Tutti i biglietti", "Tickets:": "Biglietti", + "Name or email": "Nome o email", "update user information": "aggiorna le informazioni dell'utente", "Old password": "Vecchia password", "New password": "Nuova password",