mirror of
				https://github.com/ether/etherpad-lite.git
				synced 2025-10-31 08:11:10 +01:00 
			
		
		
		
	ensure we don't inject a second jquery
This commit is contained in:
		
							parent
							
								
									d4c851875a
								
							
						
					
					
						commit
						27f9906b1e
					
				| @ -7,7 +7,8 @@ var helper = {}; | |||||||
|     $iframeContainer = $("#iframe-container"); |     $iframeContainer = $("#iframe-container"); | ||||||
| 
 | 
 | ||||||
|     $.get('/static/js/jquery.js').done(function(code){  |     $.get('/static/js/jquery.js').done(function(code){  | ||||||
|       jsLibraries["jquery"] = code; |       // make sure we don't override existing jquery
 | ||||||
|  |       jsLibraries["jquery"] = "if(typeof $ === 'undefined') {\n" + code + "\n}"; | ||||||
| 
 | 
 | ||||||
|       $.get('/tests/frontend/sendkeys.js').done(function(code){  |       $.get('/tests/frontend/sendkeys.js').done(function(code){  | ||||||
|         jsLibraries["sendkeys"] = code; |         jsLibraries["sendkeys"] = code; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user