WIP: Aureplop/kpsul js refactor #501
1 changed files with 7 additions and 8 deletions
|
@ -4,6 +4,7 @@
|
|||
{% block extra_head %}
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'kfet/css/transfers_form.css' %}">
|
||||
<script type="text/javascript" src="{% static 'kfet/js/js.cookie.js' %}"></script>
|
||||
<script type="text/javascript" src="{% url 'js_reverse' %}"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block title %}Nouveaux transferts{% endblock %}
|
||||
|
@ -51,14 +52,12 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
function getAccountData(trigramme, callback = function() {}) {
|
||||
$.ajax({
|
||||
dataType: "json",
|
||||
url : "{% url 'kfet.account.read.json' %}",
|
||||
method : "POST",
|
||||
data : { trigramme: trigramme },
|
||||
success : callback,
|
||||
});
|
||||
function getAccountData(trigramme, callback) {
|
||||
callback = callback || $.noop;
|
||||
$.getJSON(Urls['kfet.account.read'](trigramme), {
|
||||
'format': 'json',
|
||||
})
|
||||
.done(callback);
|
||||
}
|
||||
|
||||
function updateAccountData(trigramme, $input) {
|
||||
|
|
Loading…
Reference in a new issue