forked from CIT/Vmeda.Online
		
	MOBILE-2858 grades: Add unkown type grade items
This commit is contained in:
		
							parent
							
								
									575285077f
								
							
						
					
					
						commit
						6c2eeee6bb
					
				@ -440,13 +440,15 @@ export class CoreGradesHelperProvider {
 | 
				
			|||||||
                    this.domUtils.convertToElement(text).querySelector('img').getAttribute('src'));
 | 
					                    this.domUtils.convertToElement(text).querySelector('img').getAttribute('src'));
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            if (row['rowspan']) {
 | 
					            if (row['rowspan'] && row['rowspan'] > 1) {
 | 
				
			||||||
                row['itemtype'] = 'category';
 | 
					                row['itemtype'] = 'category';
 | 
				
			||||||
                row['icon'] = 'fa-folder';
 | 
					                row['icon'] = 'fa-folder';
 | 
				
			||||||
            } else if (text.indexOf('src=') > -1) {
 | 
					            } else if (text.indexOf('src=') > -1) {
 | 
				
			||||||
 | 
					                row['itemtype'] = 'unknown';
 | 
				
			||||||
                const src = text.match(/src="([^"]*)"/);
 | 
					                const src = text.match(/src="([^"]*)"/);
 | 
				
			||||||
                row['image'] = src[1];
 | 
					                row['image'] = src[1];
 | 
				
			||||||
            } else if (text.indexOf('<i ') > -1) {
 | 
					            } else if (text.indexOf('<i ') > -1) {
 | 
				
			||||||
 | 
					                row['itemtype'] = 'unknown';
 | 
				
			||||||
                const src = text.match(/class="fa-([^ ]*)"/);
 | 
					                const src = text.match(/class="fa-([^ ]*)"/);
 | 
				
			||||||
                row['icon'] = src[1];
 | 
					                row['icon'] = src[1];
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user