Merge pull request #9 from i-break-codes/changes

Bug Fixes + Feature Tweaks
This commit is contained in:
Vaibhav Mehta 2017-02-22 00:36:09 +05:30 committed by GitHub
commit 40371d48f0
2 changed files with 14 additions and 9 deletions

View File

@ -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) {}
});
}

View File

@ -126,6 +126,7 @@ header {
height: 100%;
border-right: 1px solid $base-color;
width: 20%;
overflow: scroll;
}
}