removes image from localized blog post so that build will pass.

-- also javascript cleanup in platform detection and down button init.
This commit is contained in:
Chuck Williams 2017-02-01 01:42:33 -07:00
parent 9bb2ff7536
commit 34737b992f
2 changed files with 10 additions and 4 deletions

View file

@ -1,7 +1,7 @@
---
author: tungfa
layout: post
image: CoPayWalletcopy.jpg
image:
title: "Copay-Dash Wallet (Testnet só / RC 0.1)"
---
Estou feliz em anunciar uma versão “Release Candidate” da Copay-Dash, uma carteira Copay que foi desenvolvida pela Bitpay.

View file

@ -11,6 +11,11 @@
;
$(document).ready(function () {
_ = window._ || null,
walletsCollectionByOs = window.walletsCollectionByOs || undefined,
platform = window.platform || undefined
;
if (typeof(walletsCollectionByOs) !== 'undefined' && walletsCollectionByOs) {
initDownloadButton();
}
@ -82,14 +87,15 @@
function initDownloadButton() {
var _downloadButton = $('#download-detected-platform-button'),
_detectedWallet = getBestWalletMatch(),
_notDetectedMessage = $('#platform-not-detected')
_notDetectedMessage = $('#platform-not-detected'),
_platform = platform
;
if (_downloadButton && _downloadButton.length > 0) {
if (_detectedWallet && platform) {
if (_detectedWallet && _platform) {
_downloadButton.html(_detectedWallet.links[0].label + ': ' + _detectedWallet.name)
.attr({
title: platform.os.toString()
title: _platform.os.toString()
})
.data('detectedWallet',_detectedWallet)
.click(onDownloadClick)