| 
									
										
										
										
											2019-02-14 20:56:33 +01:00
										 |  |  | import noteDetailService from '../services/note_detail.js'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const $dialog = $("#note-info-dialog"); | 
					
						
							|  |  |  | const $noteId = $("#note-info-note-id"); | 
					
						
							| 
									
										
										
										
											2019-03-12 20:58:31 +01:00
										 |  |  | const $utcDateCreated = $("#note-info-date-created"); | 
					
						
							|  |  |  | const $utcDateModified = $("#note-info-date-modified"); | 
					
						
							| 
									
										
										
										
											2019-02-14 20:56:33 +01:00
										 |  |  | const $type = $("#note-info-type"); | 
					
						
							|  |  |  | const $mime = $("#note-info-mime"); | 
					
						
							|  |  |  | const $okButton = $("#note-info-ok-button"); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | function showDialog() { | 
					
						
							|  |  |  |     glob.activeDialog = $dialog; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     $dialog.modal(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     const currentNote = noteDetailService.getCurrentNote(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     $noteId.text(currentNote.noteId); | 
					
						
							| 
									
										
										
										
											2019-03-12 20:58:31 +01:00
										 |  |  |     $utcDateCreated.text(currentNote.utcDateCreated); | 
					
						
							|  |  |  |     $utcDateModified.text(currentNote.utcDateModified); | 
					
						
							| 
									
										
										
										
											2019-02-14 20:56:33 +01:00
										 |  |  |     $type.text(currentNote.type); | 
					
						
							|  |  |  |     $mime.text(currentNote.mime); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $okButton.click(() => $dialog.modal('hide')); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default { | 
					
						
							|  |  |  |     showDialog | 
					
						
							|  |  |  | }; |