Merge pull request #1027 from asg017/master
Add download action to published notes
This commit is contained in:
		
						commit
						54d3d930cf
					
				| @ -423,6 +423,9 @@ function publishNoteActions (req, res, next) { | |||||||
|   findNote(req, res, function (note) { |   findNote(req, res, function (note) { | ||||||
|     var action = req.params.action |     var action = req.params.action | ||||||
|     switch (action) { |     switch (action) { | ||||||
|  |       case 'download': | ||||||
|  |         actionDownload(req, res, note) | ||||||
|  |         break | ||||||
|       case 'edit': |       case 'edit': | ||||||
|         res.redirect(config.serverURL + '/' + (note.alias ? note.alias : models.Note.encodeNoteId(note.id))) |         res.redirect(config.serverURL + '/' + (note.alias ? note.alias : models.Note.encodeNoteId(note.id))) | ||||||
|         break |         break | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user