|
|
|
@ -23,10 +23,13 @@ function loadCards(callback) {
|
|
|
|
|
var note = notes[n];
|
|
|
|
|
$("#notecards-bin").append('<div class="col-100 tablet-50 desktop-33 notecard-col" id="notecard-col-' + note.noteid + '">'
|
|
|
|
|
+ '<div class="card notecard" id="notecard-' + note.noteid + '" data-id="' + note.noteid + '" data-bg="' + note.color + '" data-fg="' + note.textcolor + '" style="background-color: #' + note.color + '; color: #' + note.textcolor + ';">'
|
|
|
|
|
+ '<div class="editbtn">'
|
|
|
|
|
+ '<i class="material-icons">edit</i>'
|
|
|
|
|
+ '</div>'
|
|
|
|
|
+ '<div class="menubtn">'
|
|
|
|
|
+ '<i class="material-icons">more_vert</i>'
|
|
|
|
|
+ '</div>'
|
|
|
|
|
+ '<div class="card-content card-content-padding">' + note.html + '</div>'
|
|
|
|
|
+ '<div class="card-content card-content-padding"><div class="btnswrapthing"></div>' + note.html + '</div>'
|
|
|
|
|
+ '</div>'
|
|
|
|
|
+ '</div>');
|
|
|
|
|
}
|
|
|
|
@ -194,6 +197,10 @@ $(".view-main").on("click", ".notecard .menubtn", function () {
|
|
|
|
|
return openNoteActionMenu($(this).parent());
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$(".view-main").on("click", ".notecard .editbtn", function () {
|
|
|
|
|
editNote($(this).parent().data("id"));
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$(".view-main").on("contextmenu", ".notecard", function () {
|
|
|
|
|
return openNoteActionMenu($(this));
|
|
|
|
|
});
|