This commit is contained in:
James Cole
2017-07-08 06:09:17 +02:00
parent 19774f32c2
commit de9728895e
3 changed files with 12 additions and 4 deletions

View File

@@ -8,6 +8,8 @@
/** global: Modernizr, accountInfo, currencyInfo, accountInfo, transferInstructions, what */
var countConversions = 0;
$(document).ready(function () {
"use strict";
setCommonAutocomplete();
@@ -118,6 +120,12 @@ function convertForeignToNative() {
* @param data
*/
function updateNativeAmount(data) {
// if native amount is already filled in, even though we do this for the first time:
// don't overrule it.
if(countConversions === 0 && $('#ffInput_native_amount').val().length > 0) {
countConversions++;
return;
}
$('#ffInput_native_amount').val(data.amount);
}