Added some accesskeys:
* e => edit * r => preview * f => quick search * 4 => search git-svn-id: http://redmine.rubyforge.org/svn/trunk@804 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -126,6 +126,16 @@ module ApplicationHelper
|
||||
title.compact.join(' - ')
|
||||
end
|
||||
|
||||
ACCESSKEYS = {:edit => 'e',
|
||||
:preview => 'r',
|
||||
:quick_search => 'f',
|
||||
:search => '4',
|
||||
}.freeze
|
||||
|
||||
def accesskey(s)
|
||||
ACCESSKEYS[s]
|
||||
end
|
||||
|
||||
# format text according to system settings
|
||||
def textilizable(text, options = {})
|
||||
return "" if text.blank?
|
||||
|
||||
Reference in New Issue
Block a user