From ba5200b50692b889f59df9f37c913b3ef85045c8 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 21 Jan 2017 19:46:49 -0800 Subject: Ditch client code --- static/js/setup.js | 82 ------------------------------------------------------ 1 file changed, 82 deletions(-) delete mode 100644 static/js/setup.js (limited to 'static/js/setup.js') diff --git a/static/js/setup.js b/static/js/setup.js deleted file mode 100644 index 63b9e291..00000000 --- a/static/js/setup.js +++ /dev/null @@ -1,82 +0,0 @@ -;(function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0](function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s" + v + ""); - }); - $("#currency option[value='CAD']").attr('selected', 'selected'); - $('#currency').change(function() { - var currency, symbols; - currency = $(this).val(); - if (!currency) { - return; - } - $('#symbol option').remove(); - symbols = Object.keys(data[currency]); - $.each(symbols, function(i, v) { - if (v === 'localbitcoins') { - return; - } - return $('#symbol').append(""); - }); - switch (currency) { - case 'CAD': - return $("#symbol option[value='quadrigacx']").attr('selected', 'selected'); - case 'USD': - return $("#symbol option[value='bitstamp']").attr('selected', 'selected'); - } - }); - user = $('#username').val(); - return $.getJSON("/" + user + ".json", function(data) { - if (data.commission == null) { - data.commission = 0; - } - if (data.unit == null) { - data.unit = 'BTC'; - } - $('#email').val(data.email); - $('#title').val(data.title); - $('#logo').val(data.logo); - $('#address').val(data.address); - $('#commission').val(data.commission); - $('#unit').val(data.unit); - $("#currency option[value='" + data.currency + "']").attr('selected', 'selected'); - $('#currency').change(); - $("#symbol option[value='" + data.symbol + "']").attr('selected', 'selected'); - $('#setup').fadeIn(); - return $('#title').focus(); - }); - }); - units = ['BTC', 'mBTC', 'µBTC', 'bits', 'satoshis']; - $.each(units, function(i, v) { - return $('#unit').append(""); - }); - return $('#setup').submit(function() { - $('#setup .form-control').blur(); - if ($('#setup .has-error').length > 0) { - $('#setup .has-error').effect('shake', 500); - return false; - } - }); - }); - -}).call(this); - - -},{}]},{},[1]) -; -- cgit v1.2.3