fall back to element directly if no child, needed for changing submit buttons and...
authorGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 10 Jun 2004 15:02:27 +0000 (15:02 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 10 Jun 2004 15:02:27 +0000 (15:02 +0000)
stylesheets/wikibits.js

index 298c2a9..d3ed147 100644 (file)
@@ -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;
             }
         }
     }