mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 20:36:07 +01:00 
			
		
		
		
	Remove jQuery .attr from the image diff again (#30022)
				
					
				
			- Follows https://github.com/go-gitea/gitea/pull/29917 Missed these Signed-off-by: Yarden Shoham <git@yardenshoham.com>
This commit is contained in:
		@@ -98,8 +98,10 @@ export function initImageDiff() {
 | 
			
		||||
        const text = await resp.text();
 | 
			
		||||
        const bounds = getDefaultSvgBoundsIfUndefined(text, info.path);
 | 
			
		||||
        if (bounds) {
 | 
			
		||||
          info.$images.attr('width', bounds.width);
 | 
			
		||||
          info.$images.attr('height', bounds.height);
 | 
			
		||||
          info.$images.each(function() {
 | 
			
		||||
            this.setAttribute('width', bounds.width);
 | 
			
		||||
            this.setAttribute('height', bounds.height);
 | 
			
		||||
          });
 | 
			
		||||
          hideElem(info.$boundsInfo);
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user