diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-24 14:59:48 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-24 14:59:48 +0200 |
| commit | c3ec67139713478c0ee5271929e2c6479b9dd67e (patch) | |
| tree | b3ce60f58395c412bf917304f18dfd520a0250ee /index.html | |
| parent | 087d74e0632408c00055b3f69251df4cc1ba4d48 (diff) | |
| download | bridge-c3ec67139713478c0ee5271929e2c6479b9dd67e.tar.gz bridge-c3ec67139713478c0ee5271929e2c6479b9dd67e.zip | |
support downloading brawls
Diffstat (limited to 'index.html')
| -rw-r--r-- | index.html | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -9,6 +9,8 @@ <input type="text" id="update-name"> <input type="checkbox" id="update-force"> <label for="update-force">Force refresh</label> + <input type="checkbox" id="update-brawl"> + <label for="update-brawl">Get Brawls</label> <input type="submit" value="Update"> </form> </p> @@ -92,12 +94,16 @@ $("#update-form").submit((e) => { e.preventDefault(); let ign = $("#update-name").val(), - force = $("#update-force").is(":checked"); + force = $("#update-force").is(":checked"), + brawls = $("#update-brawl").is(":checked"); if (force) { $.post("/api/player/" + ign + "/search"); } else { - $.post("/api/player/" + ign + "/update"); + if (!brawls) + $.post("/api/player/" + ign + "/update"); + else + $.post("/api/player/" + ign + "/update-brawl"); } }); $("#update-random-form").submit((e) => { |
