Project

General

Profile

« Previous | Next » 

Revision 60984

[Trunk | Library]:
1. newSearchPage.component.ts: [Bug fix] Initialize properties (Envproperties) in field definition, not in ngOnInit method (when parent called a method that needs property, may had not been initialized).
2. portal-search-result.component.html: Removed tooltip from description.
3. portal-search-result.component.ts: In method "_formatDescription()" call method "StringUtils.HTMLToString()" before cutting it.

View differences:

newSearchPage.component.ts
100 100
  public pagingLimit: number = 0;
101 101
  public resultsPerPage: number = 0;
102 102
  isPiwikEnabled = false;
103
  properties: EnvProperties;
103
  properties: EnvProperties = properties;
104 104
  public pageContents = null;
105 105
  public divContents = null;
106 106
  public routerHelper: RouterHelper = new RouterHelper();
......
138 138
  }
139 139

  
140 140
  ngOnInit() {
141
      this.properties = properties;
141
      // this.properties = properties;
142 142
      //this.getDivContents();
143 143
      this.getPageContents();
144 144
      this.pagingLimit = this.properties.pagingLimit;

Also available in: Unified diff