Commit 9d451409 authored by Eric Duminil's avatar Eric Duminil
Browse files

Show Repo path.

parent 28a02297
Showing with 6 additions and 2 deletions
+6 -2
...@@ -67,6 +67,7 @@ public Void call() throws IOException { ...@@ -67,6 +67,7 @@ public Void call() throws IOException {
task.setOnRunning(e -> { task.setOnRunning(e -> {
jsApp.call("display", "Importing citgyml. Please wait."); jsApp.call("display", "Importing citgyml. Please wait.");
jsApp.call("showRepositoryName", repo.getFileName().toString());
jsApp.call("init"); jsApp.call("init");
}); });
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<body> <body>
<div id="header"> <div id="header">
<ul> <ul>
<li class="title">Simstadt Region Chooser</li> <li class="title"><span id="repo_path"></span></li>
<li class="title" id="select_repository" style="visibility:hidden"><button onclick="regionChooser.selectRepository()">Select repository</button></li> <li class="title" id="select_repository" style="visibility:hidden"><button onclick="regionChooser.selectRepository()">Select repository</button></li>
</ul> </ul>
</div> </div>
......
...@@ -393,9 +393,12 @@ var regionChooser = (function(){ ...@@ -393,9 +393,12 @@ var regionChooser = (function(){
} }
publicScope.selectRepository = function() { publicScope.selectRepository = function() {
console.log("Should probably do select repository.");
fxapp.selectRepository(); fxapp.selectRepository();
} }
publicScope.showRepositoryName = function(path) {
document.getElementById("repo_path").textContent = path;
}
focusOnMap(); focusOnMap();
//var regionChooser = publicScope; //NOTE: In order to open closure. For debugging //var regionChooser = publicScope; //NOTE: In order to open closure. For debugging
......
Supports Markdown
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