16 lines
367 B
JavaScript
16 lines
367 B
JavaScript
$("#CurrencyUpdate").change(function () {
|
|
var currency = $(this).val();
|
|
$.ajax({
|
|
url: '/ajax/CurrencyUpdate/',
|
|
data: {
|
|
'currency': currency
|
|
},
|
|
dataType: 'json',
|
|
success: function (data) {
|
|
if (data.is_taken) {
|
|
alert("es pop auf! --dies kommt von: static/js/app.js--.");
|
|
}
|
|
}
|
|
});
|
|
});
|