fix jscolor picker for new kanban items and fix the code according to CI

pull/1/head
MTRNord 6 years ago
parent e7a1433a30
commit 8b384d6bb3
No known key found for this signature in database
GPG Key ID: E5B89311FAB91B9F

@ -250,12 +250,12 @@ define([
jscolorL = new window.jscolor(el,{onFineChange: onchange, valueElement:undefined});
jscolorL.show();
var currentColor = boardJSON.color;
if (currentColor == undefined) {
currentColor = ''
if (currentColor === undefined) {
currentColor = '';
}
jscolorL.fromString(currentColor);
},
buttonClick: function (el, boardId) {
buttonClick: function (el, boardId, e) {
e.stopPropagation();
if (framework.isReadOnly() || framework.isLocked()) { return; }
UI.confirm(Messages.kanban_deleteBoard, function (yes) {

@ -275,6 +275,7 @@
nodeItem.dragendfn = element.dragend;
nodeItem.dropfn = element.drop;
__onclickHandler(nodeItem);
__onColorClickHandler(nodeItem, "item");
board.appendChild(nodeItem);
// send event that board has changed
self.onChange();

Loading…
Cancel
Save