diff --git a/build.gradle b/build.gradle index eec6ab4..7f0b7fc 100644 --- a/build.gradle +++ b/build.gradle @@ -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 diff --git a/src/main/resources/static/javascript/page.jsx b/src/main/resources/static/javascript/page.jsx index 31dc03a..ba78242 100644 --- a/src/main/resources/static/javascript/page.jsx +++ b/src/main/resources/static/javascript/page.jsx @@ -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() { diff --git a/src/test/kotlin/tests/PlaygroundTest.kt b/src/test/kotlin/tests/PlaygroundTest.kt index 8d71633..c993fed 100644 --- a/src/test/kotlin/tests/PlaygroundTest.kt +++ b/src/test/kotlin/tests/PlaygroundTest.kt @@ -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")