insert current date + time on alt+t

This commit is contained in:
azivner 2017-08-29 23:27:28 -04:00
parent 361e69d236
commit b57463d049

View file

@ -160,4 +160,13 @@ $("#addLinkButton").click(function() {
$(document).bind('keydown', 'alt+s', function() {
$("input[name=search]").focus();
});
$(document).bind('keydown', 'alt+t', function() {
const date = new Date();
const dateString = date.getDate() + ". " + (date.getMonth() + 1) + ". " + date.getFullYear() + " " +
date.getHours() + ":" + date.getMinutes();
$('#noteDetail').summernote('insertText', dateString);
});