mirror of
				https://github.com/qurator-spk/neat.git
				synced 2025-11-04 02:34:14 +01:00 
			
		
		
		
	add enlarge link
This commit is contained in:
		
							parent
							
								
									3f8ab54933
								
							
						
					
					
						commit
						66ace58e2e
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		
							
								
								
									
										7
									
								
								neat.js
									
										
									
									
									
								
							
							
						
						
									
										7
									
								
								neat.js
									
										
									
									
									
								
							| 
						 | 
					@ -175,7 +175,12 @@ function setupInterface(data, file, urls) {
 | 
				
			||||||
        img_url = img_url.replace('width', width.toString());
 | 
					        img_url = img_url.replace('width', width.toString());
 | 
				
			||||||
        img_url = img_url.replace('height', height.toString());
 | 
					        img_url = img_url.replace('height', height.toString());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if ($('#enlarge-page-link').length == 0) {
 | 
				
			||||||
 | 
					            $('#preview-rgn').append($('<a href="" id="enlarge-page-link"><small>enlarge</small> </a>'));
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $("#preview-link").attr("href", img_url);
 | 
					        $("#preview-link").attr("href", img_url);
 | 
				
			||||||
 | 
					        $("#enlarge-page-link").attr("href", img_url);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        img_url = urls[data.data[nRow]['url_id']];
 | 
					        img_url = urls[data.data[nRow]['url_id']];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -194,7 +199,7 @@ function setupInterface(data, file, urls) {
 | 
				
			||||||
        img_url = img_url.replace('height', height.toString());
 | 
					        img_url = img_url.replace('height', height.toString());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ($('#full-page-link').length == 0) {
 | 
					        if ($('#full-page-link').length == 0) {
 | 
				
			||||||
            $('#preview-rgn').append($('<a href="" id="full-page-link"><small>full page</small> </a>'));
 | 
					            $('#preview-rgn').append($('<small>| </small><a href="" id="full-page-link"><small>full</small> </a>'));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $("#full-page-link").attr("href", img_url);
 | 
					        $("#full-page-link").attr("href", img_url);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue