Revision 58281
Added by Stefania Martziou about 4 years ago
content-events-of-repo-eventslist.component.ts | ||
---|---|---|
282 | 282 |
this.currentPage = this.currentPage + 1; |
283 | 283 |
console.log(`Get me page ${this.currentPage}!`); |
284 | 284 |
this.getEventsPage(this.currentPage); |
285 |
|
|
286 |
window.scrollTo(0, 0); |
|
285 | 287 |
} |
286 | 288 |
|
287 | 289 |
} |
... | ... | |
298 | 300 |
this.currentPage = this.currentPage - 1; |
299 | 301 |
console.log(`Get me page ${this.currentPage}!`); |
300 | 302 |
this.getEventsPage(this.currentPage); |
303 |
|
|
304 |
window.scrollTo(0, 0); |
|
301 | 305 |
} |
302 | 306 |
} |
303 | 307 |
|
... | ... | |
344 | 348 |
} |
345 | 349 |
} |
346 | 350 |
|
347 |
displayFullResultInfo(i: number) { |
|
348 |
if (this.selectedItemIndex === i) { |
|
349 |
this.selectedItemIndex = null; |
|
350 |
} else { |
|
351 |
this.selectedItemIndex = i; |
|
352 |
} |
|
351 |
// displayFullResultInfo(i: number) { |
|
352 |
// if (this.selectedItemIndex === i) { |
|
353 |
// this.selectedItemIndex = null; |
|
354 |
// } else { |
|
355 |
// this.selectedItemIndex = i; |
|
356 |
// } |
|
357 |
// } |
|
358 |
|
|
359 |
showMore(i: number) { |
|
360 |
this.selectedItemIndex = i; |
|
353 | 361 |
} |
354 | 362 |
|
363 |
showLess(i: number) { |
|
364 |
this.selectedItemIndex = null; |
|
365 |
} |
|
366 |
|
|
355 | 367 |
} |
356 | 368 |
|
357 | 369 |
export function checkMinMax(c: AbstractControl) { |
Also available in: Unified diff
Almost final commit for the new UI