Converted 'article' nomenclature to 'interview'
This commit is contained in:
@ -98,7 +98,7 @@ class WompumGrid {
|
||||
}
|
||||
}
|
||||
|
||||
class ArticleGrid extends WompumGrid {
|
||||
class InterviewGrid extends WompumGrid {
|
||||
constructor(element, metadata) {
|
||||
super(element);
|
||||
this.metadata = metadata;
|
||||
@ -249,16 +249,16 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
grid.init();
|
||||
});
|
||||
|
||||
// Initialize article grids
|
||||
document.querySelectorAll('.wompum-article-grid').forEach(element => {
|
||||
// Initialize interview grids
|
||||
document.querySelectorAll('.wompum-interview-grid').forEach(element => {
|
||||
let metadata = {};
|
||||
try {
|
||||
metadata = JSON.parse(element.dataset.metadata || '{}');
|
||||
} catch (e) {
|
||||
console.error('Error parsing metadata for article grid:', e);
|
||||
console.error('Error parsing metadata for interview grid:', e);
|
||||
}
|
||||
|
||||
const grid = new ArticleGrid(element, metadata);
|
||||
const grid = new InterviewGrid(element, metadata);
|
||||
grid.init();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user