mirror of
https://github.com/LaQuay/TDTChannels.git
synced 2025-06-01 10:19:23 +02:00
Add legal and improve JS
This commit is contained in:
parent
9c55d849e6
commit
f0672ec631
2 changed files with 15 additions and 5 deletions
script/public
|
@ -1,4 +1,4 @@
|
|||
function getResolution(from) {
|
||||
function getResolution(from, fn_callback) {
|
||||
$.get(from, function(data) {
|
||||
$response = data.split("\n");
|
||||
|
||||
|
@ -12,8 +12,7 @@ function getResolution(from) {
|
|||
}
|
||||
});
|
||||
|
||||
// TODO: This should be a Callback
|
||||
updateResolution($resolutions);
|
||||
fn_callback($resolutions);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue