highlight current color, only on entering edit mode

This commit is contained in:
Vinzenz Rosenkranz
2016-05-24 01:18:52 +02:00
parent aca464c5db
commit 97568ec82b

View File

@@ -163,6 +163,12 @@ View.prototype = {
var title = note.find("#title-editable").html();
var content = note.find("#content-editable").html();
var color = note.children().css("background-color");
var colors = modal[0].getElementsByClassName("circle-toolbar");
$.each(colors, function(i, c) {
if(color == c.style.backgroundColor) {
c.className += " icon-checkmark";
}
});
var modalid = modalnote.data('id');