Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1731 from OpenBazaar/removeCoinKiteOption
Browse files Browse the repository at this point in the history
Remove CoinKite Wallet
  • Loading branch information
jjeffryes authored Jun 28, 2016
2 parents 3264b29 + b8df55f commit 7381c75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 35 deletions.
18 changes: 0 additions & 18 deletions js/templates/buyWizard.html
Original file line number Diff line number Diff line change
Expand Up @@ -210,24 +210,6 @@ <h2 class="margin0 marginTop80"><%= polyglot.t('buyFlow.HaveWallet') %></h2>
</div>
</div>

<!-- Coinkite -->
<div class="width100 table padding15 borderBottom1 custCol-border js-bitcoinWalletProvider">
<div class="floatLeft marginRight8">
<a href="https://coinkite.com/promo/nwt1" target="_blank">
<img src="imgs/wallet-providers/coinkite.png" class="thumbnail thumbnail-large-slim " />
</a>
</div>
<div class="floatLeft width420 marginTop4">
<div class="clearfix">
<div class="marginBottom2 marginRight5 lineHeight21 textOpacity1 fontSize15">
<a href="https://coinkite.com/promo/nwt1" class="js-externalLink textOpacity1">Coinkite <span class="ion-android-open fontSize10"></span></a>
<span class="textOpacity50 fontSize12"><%= polyglot.t('walletProviders.WalletOnly') %></span>
</div>
<div class="textOpacity75 fontSize14"><%= polyglot.t('walletProviders.CoinkiteTagline') %></div>
</div>
</div>
</div>

<!-- BitGo -->
<div class="width100 table padding15 borderBottom1 custCol-border js-bitcoinWalletProvider">
<div class="floatLeft marginRight8">
Expand Down
24 changes: 7 additions & 17 deletions js/views/buyWizardVw.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,6 @@ var __ = require('underscore'),
clipboard = require('clipboard'),
templateHelpers = require('../utils/templateHelpers');

// randomize function
$.fn.randomize = function(selector){
var $elems = selector ? $(this).find(selector) : $(this).children(),
$parents = $elems.parent();

$parents.each(function(){
$(this).children(selector).sort(function(){
return Math.round(Math.random()) - 0.5;
}).detach().appendTo(this);
});

return this;
};

module.exports = baseModal.extend({

className: "buyView custCol-text insideApp",
Expand Down Expand Up @@ -220,9 +206,13 @@ module.exports = baseModal.extend({
//auto select first payment type
self.$el.find("input:radio[name=radioPaymentType]:first").attr('checked', true).trigger('click');

//randomize the bitcoin wallet providers 5 times
for (var i = 0; i < 5; i++) {
$(".js-BuyWizardWallets").randomize();
//randomize the bitcoin wallet providers

let $allWallets = self.$(".js-BuyWizardWallets");
let wallets = $allWallets.children('.js-bitcoinWalletProvider');

while (wallets.length){
$allWallets.append(wallets.splice(Math.floor(Math.random() * wallets.length), 1)[0]);
}

//set the QR details checkbox
Expand Down

0 comments on commit 7381c75

Please sign in to comment.