Fix issues with #1521

This commit is contained in:
James Cole
2018-07-02 15:37:56 +02:00
parent f62fd18b72
commit 7629dfd54a
7 changed files with 101 additions and 7 deletions

View File

@@ -83,6 +83,7 @@ $(function () {
function currencySelect(e) {
"use strict";
console.log('In currencySelect() because somebody clicked a .currency-option.');
// clicked on
var target = $(e.target); // target is the <A> tag.
@@ -105,6 +106,7 @@ function currencySelect(e) {
var id = target.data('id');
// update the hidden input:
console.log('Updated ' + hiddenInputName + ' to ID ' + id);
$('input[name="' + hiddenInputName + '"]').val(id);
// update the symbol: