Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 518ed145 authored by Dirk Dougherty's avatar Dirk Dougherty
Browse files

Fix g-plusone data-href references for cards pointing to static content.

Change-Id: I762e098db2c51c5687e9727b83bddb2a891ac289
parent ea98c841
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
    }