Skip to content

Commit

Permalink
Make config update request async (#36)
Browse files Browse the repository at this point in the history
* Make config update request async

* Update version
  • Loading branch information
andycate authored Feb 6, 2019
1 parent b81ece0 commit fab8a8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies {
}

group = 'org.team5499'
version = '0.1.0' /* Change this when deploying a new version */
version = '0.1.1' /* Change this when deploying a new version */

task sourcesJar(type: Jar) {
from sourceSets.main.allJava
Expand Down
6 changes: 2 additions & 4 deletions src/main/resources/static/javascript/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,22 +94,20 @@ class PageUtils {
}

static sendPageConfig() {
let success = false;
$.ajax({
async: false,
async: true,
method: 'POST',
url: '/config',
contentType: 'application/json',
data: JSON.stringify(PageUtils.getPageConfig()),
success: function () {
success = true;
},
error: function (jqxhr, status, error) {

console.warn('error sending config json: ' + status + ' : ' + error);
}
});
return success;
return true;
}

static getPageConfig() {
Expand Down
2 changes: 2 additions & 0 deletions src/test/kotlin/tests/PlaygroundTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class PlaygroundTest {
println("starting server...")
println("go to http://localhost:5800/")
Dashboard.start(this, "playgroundConf.json")
Dashboard.setVariable("TEST", "testvalue")
Dashboard.setVariable("DEEK", "anothervalue")
println("server started")
while (true) { // find a better way to wait?
@Suppress("MagicNumber")
Expand Down

0 comments on commit fab8a8c

Please sign in to comment.