added more keyboard shortcuts to open search, save and toggle controls

This commit is contained in:
Torkel Ödegaard committed 2013-12-29 11:46:36 +01:00
1 parent 2be31e5779
commit e7dd50eda5
7 files changed
+51 -28

No files matched your search

+5 -1
View File
@@ -7,13 +7,17 @@ function (angular, _) {
var module = angular.module('kibana.controllers');
module.controller('dashLoader', function($scope, $http, timer, dashboard, alertSrv, $location) {
module.controller('dashLoader', function($scope, $rootScope, $http, timer, dashboard, alertSrv, $location) {
$scope.loader = dashboard.current.loader;
$scope.init = function() {
$scope.gist_pattern = /(^\d{5,}$)|(^[a-z0-9]{10,}$)|(gist.github.com(\/*.*)\/[a-z0-9]{5,}\/*$)/;
$scope.gist = $scope.gist || {};
$scope.elasticsearch = $scope.elasticsearch || {};
$rootScope.$on('save-dashboard', function() {
$scope.elasticsearch_save('dashboard', false);
});
};
$scope.showDropdown = function(type) {