Merge branch 'sidebar'
authorErik Haider Forsén <erikhf@ifi.uio.no>
Thu, 3 Dec 2015 14:12:42 +0000 (15:12 +0100)
committerErik Haider Forsén <erikhf@ifi.uio.no>
Thu, 3 Dec 2015 14:12:42 +0000 (15:12 +0100)
* sidebar:
  [sidebar] Using model-driven form instead of data-driven form
  [sidebar] Working on adding object
  [sidebar] Functionality to cancel editing
  [sidebar] Update existing organizational unit

# Conflicts:
# src/components/map/map.ts

1  2 
src/components/map/map.ts

@@@ -12,20 -12,17 +12,20 @@@ import {Headers, Http} from 'angular2/h
  
  export class Map {
  
 +    hideModal: any;
      map:Object;
 -    http: Http;
 -    LEVEL: number;
 -    runned: boolean;
 -    parent: Object;
 -    currentPos : Object;
 -    uprunned: boolean;
 +    http:Http;
 +    LEVEL:number;
 +    runned:boolean;
 +    parent:Object;
 +    currentPos:Object;
 +    uprunned:boolean;
 +    // COLORS:Object;
 +
      constructor(http:Http) {
          this.newactive = new EventEmitter();
-         this.newOrg = new EventEmitter();
-         this.map = new google.maps.Map(document.getElementById("map"), {center: {lat: 0, lng: 0}, zoom: 12});
+         this.neworg = new EventEmitter();
+         this.map = new google.maps.Map(document.getElementById("map"),{center: {lat:0,lng:0}, zoom:12});
          this.init();
          this.http = http;
          this.LEVEL = 2;
          let pos = this.getcurrentPos();
          let lat = pos.lat();
          let lng = pos.lng()
 -        let location= {lat: lat, lng: lng};
 -        let event =  {location,parent};
 +        let location = {lat: lat, lng: lng};
 +        let event = {location, parent};
-         this.newOrg.next(event);
+         this.neworg.next(event);
 -
      }
  
 -    myFunction(){
 -        console.log("Inne i myfunksjonen");
 -    }
 -
 -
 -    update(event){
 +    update(event) {
          this.newactive.next(event);
 -        let getResult = Object;
          let test = this.getMap();
          let http = this.getHttp();