From: Gabriel Wicke Date: Thu, 10 Jun 2004 15:02:27 +0000 (+0000) Subject: fall back to element directly if no child, needed for changing submit buttons and... X-Git-Tag: 1.5.0alpha1~2941 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=7dbaa0afed8ccfd9a1c2c6d7035ca480287a216e;p=lhc%2Fweb%2Fwiklou.git fall back to element directly if no child, needed for changing submit buttons and similar --- diff --git a/stylesheets/wikibits.js b/stylesheets/wikibits.js index 298c2a9d17..d3ed1474b9 100644 --- a/stylesheets/wikibits.js +++ b/stylesheets/wikibits.js @@ -376,6 +376,14 @@ function akeytt() { ak = ''; } a.title = ta[id][1]+ak; + } else { + if(ta[id][0].length > 0) { + n.accessKey = ta[id][0]; + ak = ' ['+pref+ta[id][0]+']'; + } else { + ak = ''; + } + n.title = ta[id][1]+ak; } } }