am e445387e: am e2adcfef: am 518ed145: Fix g-plusone data-href references for cards pointing to static content.

* commit 'e445387e560f7116087a327d43405f24c9e3ff08':
  Fix g-plusone data-href references for cards pointing to static content.
This commit is contained in:
Dirk Dougherty 2014-05-31 16:57:01 +00:00 committed by Android Git Automerger
commit 93d62e6132
1 changed files with 2 additions and 1 deletions

View File

@ -3798,6 +3798,7 @@ function showSamples() {
.append($('<div>').addClass('util')))
.appendTo(this);
} else {
var plusurl = resource.url.indexOf("//") > -1 ? resource.url : "//developer.android.com/" + resource.url;
$('<div>').addClass('card-info' + (!resource.summary ? ' empty-desc' : ''))
.append($('<div>').addClass('section').text(section))
.append($('<div>').addClass('title').html(resource.title))
@ -3807,7 +3808,7 @@ function showSamples() {
.append($('<div>').addClass('g-plusone')
.attr('data-size', 'small')
.attr('data-align', 'right')
.attr('data-href', resource.url))))
.attr('data-href', plusurl))))
.appendTo(this);
}