mirror of
				https://gitlab.com/ruany/litebans-php.git
				synced 2025-10-31 15:02:25 +00:00 
			
		
		
		
	Don't redirect if href is undefined
This commit is contained in:
		
							parent
							
								
									4c2844e17e
								
							
						
					
					
						commit
						329088cb0d
					
				| @ -361,7 +361,7 @@ class Page { | ||||
|     public function table_end($clicky = true) { | ||||
|         echo '</table>'; | ||||
|         if ($clicky) { | ||||
|             echo "<script type=\"text/javascript\">withjQuery(function(){ $('tr').click(function(){window.location=$(this).find('a').attr('href');}).hover(function(){\$(this).toggleClass('hover');}); });</script>"; | ||||
|             echo "<script type=\"text/javascript\">withjQuery(function(){ $('tr').click(function(){var href=$(this).find('a').attr('href');if(href!==undefined)window.location=href;}).hover(function(){\$(this).toggleClass('hover');}); });</script>"; | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 ruan
						ruan