Merge pull request #9 from i-break-codes/changes
Bug Fixes + Feature Tweaks
This commit is contained in:
commit
40371d48f0
@ -87,9 +87,9 @@ var App = function() {
|
||||
}
|
||||
|
||||
function editTask() {
|
||||
$(document).on('dblclick', '.card-details p', function(e) {
|
||||
$(document).on('dblclick', '.card-details', function(e) {
|
||||
e.stopPropagation();
|
||||
$(this).attr('contenteditable','true').parents('.card').addClass('edit-mode');
|
||||
$(this).find('p').attr('contenteditable','true').parents('.card').addClass('edit-mode');
|
||||
});
|
||||
|
||||
$(document).on('input', '.card p', function() {
|
||||
@ -118,14 +118,18 @@ var App = function() {
|
||||
function draggable() {
|
||||
$('.card').draggable({
|
||||
handle: 'h5',
|
||||
revert: true,
|
||||
cursor: 'move',
|
||||
start: function(event, ui) {
|
||||
|
||||
revert: false,
|
||||
helper: function(e) {
|
||||
//Cloning element, to enable draggable elements move out of scrollable parent element.
|
||||
var original = $(e.target).hasClass("ui-draggable") ? $(e.target) : $(e.target).closest(".ui-draggable");
|
||||
return original.clone().css({
|
||||
width: original.width()
|
||||
});
|
||||
},
|
||||
stop: function(event, ui) {
|
||||
|
||||
}
|
||||
scroll: false,
|
||||
cursor: 'move',
|
||||
start: function(event, ui) {},
|
||||
stop: function(event, ui) {}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -126,6 +126,7 @@ header {
|
||||
height: 100%;
|
||||
border-right: 1px solid $base-color;
|
||||
width: 20%;
|
||||
overflow: scroll;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user