change function name

This commit is contained in:
annampak 2017-10-27 13:00:46 +03:00
parent 115c298da2
commit d1d455e89f
2 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ export class DmpComponent implements OnInit{
this.dmps = [];
this.serverService.getDmpOfUser().subscribe(
response => {
debugger;
response.forEach(resp => {
let pr = new Dmp();
pr.id = resp.id;
@ -111,7 +111,7 @@ afterLoad(){
this.dmpResource.count().then(count => this.dmpCount = count);
}
myFunction() {
filterGrid() {
var input, filter, table, tr, td, i;
input = document.getElementById("myInput");
filter = input.value.toUpperCase();

View File

@ -3,7 +3,7 @@
<div style="margin: auto; max-width: 1000px; margin-top:50px">
<div>
<span>Filter: </span>
<input type="text" id="myInput" (keyup)="myFunction()" placeholder="Search for labels.." title="Type in a name">
<input type="text" id="myInput" (keyup)="filterGrid()" placeholder="Search for projects.." title="Type in a name">
</div>
<data-table id="dmps-grid" headerTitle="My Dmps" [items]="dmps" [itemCount]="dmpCount" (reload)="reloadDmps($event)"
[limit]="8" [sortBy]="'rating'" [sortAsc]="false" [selectColumn]="true" [multiSelect]="false" [substituteRows]="false"