##// END OF EJS Templates
Pevents duplicate accesskeys (#12684)....
Jean-Philippe Lang -
r11524:9d190c922adb
parent child
Show More
@@ -471,7 +471,11 module ApplicationHelper
471 end
471 end
472
472
473 def accesskey(s)
473 def accesskey(s)
474 Redmine::AccessKeys.key_for s
474 @used_accesskeys ||= []
475 key = Redmine::AccessKeys.key_for(s)
476 return nil if @used_accesskeys.include?(key)
477 @used_accesskeys << key
478 key
475 end
479 end
476
480
477 # Formats text according to system settings.
481 # Formats text according to system settings.
General Comments 0
You need to be logged in to leave comments. Login now