mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-03 20:02:47 +00:00 
			
		
		
		
	Change js structure for displays
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
class CorpusDisplay extends ResourceDisplay {
 | 
			
		||||
ResourceDisplays.CorpusDisplay = class CorpusDisplay extends ResourceDisplays.BaseDisplay {
 | 
			
		||||
  constructor(displayElement) {
 | 
			
		||||
    super(displayElement);
 | 
			
		||||
    this.corpusId = displayElement.dataset.corpusId;
 | 
			
		||||
@@ -1,4 +1,6 @@
 | 
			
		||||
class ResourceDisplay {
 | 
			
		||||
var ResourceDisplays = {};
 | 
			
		||||
 | 
			
		||||
ResourceDisplays.BaseDisplay = class BaseDisplay {
 | 
			
		||||
  constructor(displayElement) {
 | 
			
		||||
    this.displayElement = displayElement;
 | 
			
		||||
    this.userId = this.displayElement.dataset.userId;
 | 
			
		||||
@@ -41,4 +43,4 @@ class ResourceDisplay {
 | 
			
		||||
      this.setElement(element, value);
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
};
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
class JobDisplay extends ResourceDisplay {
 | 
			
		||||
ResourceDisplays.JobDisplay = class JobDisplay extends ResourceDisplays.BaseDisplay {
 | 
			
		||||
  constructor(displayElement) {
 | 
			
		||||
    super(displayElement);
 | 
			
		||||
    this.jobId = this.displayElement.dataset.jobId;
 | 
			
		||||
		Reference in New Issue
	
	Block a user