Merge branch 'master' into staging

pull/1/head
yflory 5 years ago
commit 510fd9a1a6

@ -475,7 +475,7 @@ define([
opt = opt || {}; opt = opt || {};
var inputBlock = opt.password ? UI.passwordInput() : dialog.textInput(); var inputBlock = opt.password ? UI.passwordInput() : dialog.textInput();
var input = opt.password ? $(inputBlock).find('input')[0] : inputBlock; var input = $(inputBlock).is('input') ? inputBlock : $(inputBlock).find('input')[0];
input.value = typeof(def) === 'string'? def: ''; input.value = typeof(def) === 'string'? def: '';
var message; var message;

@ -74,6 +74,9 @@
#kanban-edit { #kanban-edit {
font-weight: bold; font-weight: bold;
} }
&:hover {
cursor: move;
}
} }
} }

@ -184,6 +184,9 @@ define([
var save = function () { var save = function () {
// Store the value // Store the value
var name = $input.val(); var name = $input.val();
if (!name || !name.trim()) {
return kanban.onChange();
}
// Remove the input // Remove the input
$(el).text(name); $(el).text(name);
// Save the value for the correct board // Save the value for the correct board

@ -36,6 +36,7 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
display: inline; display: inline;
cursor: text;
} }
.kanban-board header .kanban-title-button { .kanban-board header .kanban-title-button {

@ -151,9 +151,6 @@
return handle.classList.contains('kanban-item'); return handle.classList.contains('kanban-item');
}, },
accepts: function (el, target, source, sibling) { accepts: function (el, target, source, sibling) {
if (sibling === null) {
return false;
}
if (self.options.readOnly) { return false; } if (self.options.readOnly) { return false; }
return true; return true;
}, },

Loading…
Cancel
Save