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

Show Repo path.

parent 28a02297
......@@ -67,6 +67,7 @@ public Void call() throws IOException {
task.setOnRunning(e -> {
jsApp.call("display", "Importing citgyml. Please wait.");
jsApp.call("showRepositoryName", repo.getFileName().toString());
jsApp.call("init");
});
......
......@@ -24,7 +24,7 @@
<body>
<div id="header">
<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>
</ul>
</div>
......
......@@ -393,9 +393,12 @@ var regionChooser = (function(){
}
publicScope.selectRepository = function() {
console.log("Should probably do select repository.");
fxapp.selectRepository();
}
publicScope.showRepositoryName = function(path) {
document.getElementById("repo_path").textContent = path;
}
focusOnMap();
//var regionChooser = publicScope; //NOTE: In order to open closure. For debugging
......
Markdown is supported
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