OSDN Git Service

Let ChangeNavLang switch lang for p as well as a element.
authorDirk Dougherty <ddougherty@google.com>
Mon, 5 Oct 2015 23:45:19 +0000 (16:45 -0700)
committerDirk Dougherty <ddougherty@google.com>
Fri, 16 Oct 2015 22:14:43 +0000 (22:14 +0000)
Change-Id: I2e9e450c8d773765b61c6967a3f6529eb29b8dc2

tools/droiddoc/templates-sdk/assets/js/docs.js

index 1550b61..c30284b 100644 (file)
@@ -1326,7 +1326,7 @@ function requestAppendHL(uri) {
 function changeNavLang(lang) {
   if (lang === 'en') { return; }
 
-  var $links = $('a[' + lang + '-lang]');
+  var $links = $("a[" + lang + "-lang],p[" + lang + "-lang]");
   $links.each(function(){ // for each link with a translation
     var $link = $(this);
     // put the desired language from the attribute as the text