everything is working, great success
authorErik Haider Forsén <erikhf@ifi.uio.no>
Thu, 3 Dec 2015 21:54:55 +0000 (22:54 +0100)
committerErik Haider Forsén <erikhf@ifi.uio.no>
Thu, 3 Dec 2015 21:54:55 +0000 (22:54 +0100)
src/components/map/map.html
src/components/map/map.ts

index daaee55..1588c3a 100644 (file)
@@ -4,7 +4,7 @@
 <div id="divModal" class="modal-dialog modal-sm">
     <div class="modal-content">
         <div class="modal-header">
-            <button type="button" class="close" (click)="html()">&times;</button>
+            <button type="button" class="close" (click)="closeModal()">&times;</button>
             <h4 class="modal-title">What do you want ? </h4>
         </div>
         <div id="topLevel">
index 6c19769..472834e 100644 (file)
@@ -333,14 +333,14 @@ export class Map {
     }
 
     showModal() {
-        return this.hideModal = document.getElementById("divModal").style.visibility = "visible";
+        return this.hideModal = document.getElementById("divModal").style.display = "block";
     }
 
     closeModal() {
         this.hideModal = document.getElementById("topLevel").style.visibility = "hidden";
         this.hideModal = document.getElementById("middleLevel").style.visibility = "hidden";
         this.hideModal = document.getElementById("bottomLevel").style.visibility = "hidden";
-        this.hideModal = document.getElementById("divModal").style.visibility = "hidden";
+        this.hideModal = document.getElementById("divModal").style.display = "none";
 
         this.setRunned(false);
     }