mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-28 08:50:34 +00:00
Update News page
This commit is contained in:
@ -30,11 +30,11 @@ class RessourceList {
|
||||
...{pagination: {item: `<li><a class="page" href="#${listElement.id}"></a></li>`}},
|
||||
...options
|
||||
}
|
||||
if ('ressourceMapper' in options) {
|
||||
if ('ressourceMapper' in options && typeof options.ressourceMapper === 'function') {
|
||||
this.ressourceMapper = options.ressourceMapper;
|
||||
delete options.ressourceMapper;
|
||||
}
|
||||
if ('initialHtmlGenerator' in options) {
|
||||
if ('initialHtmlGenerator' in options && typeof options.initialHtmlGenerator === 'function') {
|
||||
this.initialHtmlGenerator = options.initialHtmlGenerator;
|
||||
listElement.innerHTML = this.initialHtmlGenerator(listElement.id);
|
||||
delete options.initialHtmlGenerator;
|
||||
|
Reference in New Issue
Block a user