mirror of
				https://github.com/flynx/PortableMag.git
				synced 2025-10-31 20:10:13 +00:00 
			
		
		
		
	fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									04e97dbefb
								
							
						
					
					
						commit
						a2c77e8e82
					
				
							
								
								
									
										11
									
								
								editor.js
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								editor.js
									
									
									
									
									
								
							| @ -12,13 +12,13 @@ | |||||||
| // move element to target and atach it at position 
 | // move element to target and atach it at position 
 | ||||||
| // position can be 'before', 'after' (default), 'prepend' or 'append'
 | // position can be 'before', 'after' (default), 'prepend' or 'append'
 | ||||||
| function moveElementTo(elem, target, position){ | function moveElementTo(elem, target, position){ | ||||||
| 	position = position != null ? position : 'after' |  | ||||||
| 	elem | 	elem | ||||||
| 		.detach() | 		.detach() | ||||||
| 		[position == 'after'? 'insertAfter' | 		[position == 'before'? 'insertBefore' | ||||||
| 		: position == 'before'? 'insertBefore' |  | ||||||
| 		: position == 'append'? 'appendTo' | 		: position == 'append'? 'appendTo' | ||||||
| 		: position == 'prepend'? 'prependTo'](target) | 		: position == 'prepend'? 'prependTo' | ||||||
|  | 		// the default...
 | ||||||
|  | 		: 'insertAfter'](target) | ||||||
| 	return elem | 	return elem | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @ -206,9 +206,6 @@ function removePage(page){ | |||||||
| 	return page | 	return page | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /******************************************************* page sets ***/ |  | ||||||
| function  |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| /*********************************************************************/ | /*********************************************************************/ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user