Commit fb4f8827 authored by Sven Franck's avatar Sven Franck

switched from fakeRecords to liveData

parent 7bc066d2
...@@ -3379,16 +3379,15 @@ ...@@ -3379,16 +3379,15 @@
if (valid !== false) { if (valid !== false) {
$.ajax({ $.ajax({
"type":"POST", "type":"POST",
"url": "foo.php", "url": "Person_getPaymentListAsJSON",
"data": valid "data": valid
}).done(function(data) { }).done(function(data) {
// overwrite cache // overwrite cache
// NOTE: FAKE data until working priv.fragment_cache[id] = data;
priv.fragment_cache[id] = priv.getFakeRecords["payment"];
proceed(pointer, target); proceed(pointer, target);
}).fail(function(jqXHR) { }).fail(function(jqXHR) {
// fake it // fake it
priv.fragment_cache[id] = priv.getFakeRecords["payment"]; // priv.fragment_cache[id] = priv.getFakeRecords["payment"];
proceed(pointer, target); proceed(pointer, target);
}); });
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment