mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	duplicate (single) note
This commit is contained in:
		| @@ -47,14 +47,15 @@ function AttributesModel() { | ||||
|     }; | ||||
|  | ||||
|     this.updateAttributePositions = function() { | ||||
|         let position = 0; | ||||
|         let position = 10; | ||||
|  | ||||
|         // we need to update positions by searching in the DOM, because order of the | ||||
|         // attributes in the viewmodel (self.ownedAttributes()) stays the same | ||||
|         $ownedAttributesBody.find('input[name="position"]').each(function() { | ||||
|             const attribute = self.getTargetAttribute(this); | ||||
|  | ||||
|             attribute().position = position++; | ||||
|             attribute().position = position; | ||||
|             position += 10; | ||||
|         }); | ||||
|     }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user