[Bps-public-commit] rt-extension-hotkeys branch, master, updated. 807777ec0132524a0302ffe68d13c82c992955b1
? sunnavy
sunnavy at bestpractical.com
Sat Jan 28 20:58:31 EST 2012
The branch, master has been updated
via 807777ec0132524a0302ffe68d13c82c992955b1 (commit)
via f418add1af7600f1917ae27363f586a595eb223d (commit)
from c5f3995e4ab8936eaeb95b00bcaaf427656e1b67 (commit)
Summary of changes:
lib/RT/Extension/Hotkeys.pm | 47 ++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 46 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit f418add1af7600f1917ae27363f586a595eb223d
Author: sunnavy <sunnavy at bestpractical.com>
Date: Sun Jan 29 08:44:39 2012 +0800
keys in %Hotkeys are strings, not numbers
diff --git a/lib/RT/Extension/Hotkeys.pm b/lib/RT/Extension/Hotkeys.pm
index 99e4bf0..a20af61 100644
--- a/lib/RT/Extension/Hotkeys.pm
+++ b/lib/RT/Extension/Hotkeys.pm
@@ -60,7 +60,7 @@ sub Help {
my $str;
if ( $level == 0 ) {
- for my $item ( sort { $a eq 'global' ? -1 : $a <=> $b }keys %$conf ) {
+ for my $item ( sort { $a eq 'global' ? -1 : $a cmp $b }keys %$conf ) {
$str .= "===== $item =====\\n\\n";
$str .= Help( $conf->{$item}, $level + 1 );
$str .= "\\n";
commit 807777ec0132524a0302ffe68d13c82c992955b1
Author: sunnavy <sunnavy at bestpractical.com>
Date: Sun Jan 29 08:59:59 2012 +0800
hotkeys for /Search/
diff --git a/lib/RT/Extension/Hotkeys.pm b/lib/RT/Extension/Hotkeys.pm
index a20af61..f6e1fb9 100644
--- a/lib/RT/Extension/Hotkeys.pm
+++ b/lib/RT/Extension/Hotkeys.pm
@@ -300,6 +300,51 @@ customize %Hotkeys to meet your needs:
doc => 'reminders',
},
},
+ '/Search/' => {
+ 'a' => {
+ body =>
+ q!hotkeys.open('#page-menu a[href*="/Search/Edit.html"]')!,
+ doc => 'advanced',
+ },
+ 'c' => {
+ body =>
+ q!hotkeys.open('#page-menu a[href*="/Search/Chart.html"]')!,
+ doc => 'chart',
+ },
+ 'e' => {
+ body =>
+ q!hotkeys.open('#page-menu a[href*="/Search/Build.html"]')!,
+ doc => 'edit',
+ },
+ 'f' => {
+ body => q!hotkeys.open('#page-menu a[href*="/NoAuth/rss"]')!,
+ doc => 'rss',
+ },
+ 'i' => {
+ body => q!hotkeys.open('#page-menu a[href*="/NoAuth/iCal"]')!,
+ doc => 'ical',
+ },
+ 'r' => {
+ body =>
+ q!hotkeys.open('#page-menu a[href*="/Admin/Tools/Shredder"]')!,
+ doc => 'bulk',
+ },
+ 'x' => {
+ body =>
+ q!hotkeys.open('#page-menu a[href*="/Search/Results.tsv"]')!,
+ doc => 'excel',
+ },
+ 's' => {
+ body =>
+ q!hotkeys.open('#page-menu a[href*="/Search/Results.html"]')!,
+ doc => 'advanced',
+ },
+ 'u' => {
+ body =>
+ q!hotkeys.open('#page-menu a[href*="/Search/Bulk.html"]')!,
+ doc => 'bulk',
+ },
+ },
)
);
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list