mirror of
				https://github.com/flynx/PortableMag.git
				synced 2025-10-31 12:00:11 +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 
 | ||||
| // position can be 'before', 'after' (default), 'prepend' or 'append'
 | ||||
| function moveElementTo(elem, target, position){ | ||||
| 	position = position != null ? position : 'after' | ||||
| 	elem | ||||
| 		.detach() | ||||
| 		[position == 'after'? 'insertAfter' | ||||
| 		: position == 'before'? 'insertBefore' | ||||
| 		[position == 'before'? 'insertBefore' | ||||
| 		: position == 'append'? 'appendTo' | ||||
| 		: position == 'prepend'? 'prependTo'](target) | ||||
| 		: position == 'prepend'? 'prependTo' | ||||
| 		// the default...
 | ||||
| 		: 'insertAfter'](target) | ||||
| 	return elem | ||||
| } | ||||
| 
 | ||||
| @ -206,9 +206,6 @@ function removePage(page){ | ||||
| 	return page | ||||
| } | ||||
| 
 | ||||
| /******************************************************* page sets ***/ | ||||
| function  | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| /*********************************************************************/ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user