@ -475,7 +475,7 @@ define([
opt = opt || {};
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: '';
var message;
@ -74,6 +74,9 @@
#kanban-edit {
font-weight: bold;
}
&:hover {
cursor: move;
@ -184,6 +184,9 @@ define([
var save = function () {
// Store the value
var name = $input.val();
if (!name || !name.trim()) {
return kanban.onChange();
// Remove the input
$(el).text(name);
// Save the value for the correct board
@ -36,6 +36,7 @@
margin: 0;
padding: 0;
display: inline;
cursor: text;
.kanban-board header .kanban-title-button {
@ -151,9 +151,6 @@
return handle.classList.contains('kanban-item');
},
accepts: function (el, target, source, sibling) {
if (sibling === null) {
return false;
if (self.options.readOnly) { return false; }
return true;