parent
da38ac51ac
commit
35e4cf64af
6 changed files with 25 additions and 9 deletions
|
@ -81,7 +81,7 @@ width: 16px; height: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-edit-form, .card-edit-form input, .card-edit-form textarea {
|
.card-edit-form, .card-edit-form input, .card-edit-form textarea {
|
||||||
border:none;
|
border: none;
|
||||||
font-size:inherit;
|
font-size:inherit;
|
||||||
font-weight:inherit;
|
font-weight:inherit;
|
||||||
background-color:inherit;
|
background-color:inherit;
|
||||||
|
@ -95,6 +95,8 @@ width: 16px; height: 16px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
resize: none;
|
resize: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
color: #330066;
|
||||||
|
color: #666;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -656,7 +656,8 @@ $.widget("ui.mouse", {
|
||||||
.bind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
|
.bind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
|
||||||
.bind('mouseup.'+this.widgetName, this._mouseUpDelegate);
|
.bind('mouseup.'+this.widgetName, this._mouseUpDelegate);
|
||||||
|
|
||||||
event.preventDefault();
|
//ali: fixing this http://bugs.jqueryui.com/ticket/4261
|
||||||
|
//event.preventDefault();
|
||||||
event.originalEvent.mouseHandled = true;
|
event.originalEvent.mouseHandled = true;
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
|
@ -86,7 +86,7 @@ $.widget("ui.mouse", {
|
||||||
.bind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
|
.bind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
|
||||||
.bind('mouseup.'+this.widgetName, this._mouseUpDelegate);
|
.bind('mouseup.'+this.widgetName, this._mouseUpDelegate);
|
||||||
|
|
||||||
event.preventDefault();
|
//event.preventDefault();
|
||||||
event.originalEvent.mouseHandled = true;
|
event.originalEvent.mouseHandled = true;
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
|
@ -285,16 +285,16 @@
|
||||||
} else if ('submit' == settings.onblur) {
|
} else if ('submit' == settings.onblur) {
|
||||||
input.blur(function(e) {
|
input.blur(function(e) {
|
||||||
/* prevent double submit if submit was clicked */
|
/* prevent double submit if submit was clicked */
|
||||||
//t = setTimeout(function() {
|
t = setTimeout(function() {
|
||||||
form.submit();
|
form.submit();
|
||||||
//}, 200);
|
}, 200);
|
||||||
});
|
});
|
||||||
//ali here: i hacked this in so that submit happens on mouseout too
|
//ali here: i hacked this in so that submit happens on mouseout too
|
||||||
input.mouseout(function(e) {
|
input.blur(function(e) {
|
||||||
/* prevent double submit if submit was clicked */
|
/* prevent double submit if submit was clicked */
|
||||||
//t = setTimeout(function() {
|
t = setTimeout(function() {
|
||||||
form.submit();
|
form.submit();
|
||||||
//}, 200);
|
}, 200);
|
||||||
});
|
});
|
||||||
} else if ($.isFunction(settings.onblur)) {
|
} else if ($.isFunction(settings.onblur)) {
|
||||||
input.blur(function(e) {
|
input.blur(function(e) {
|
||||||
|
|
|
@ -171,6 +171,17 @@ function drawNewCard(id, text, x, y, rot, colour, sticker, animationspeed)
|
||||||
var card = $(h);
|
var card = $(h);
|
||||||
card.appendTo('#board');
|
card.appendTo('#board');
|
||||||
|
|
||||||
|
//@TODO
|
||||||
|
//Draggable has a bug which prevents blur event
|
||||||
|
//http://bugs.jqueryui.com/ticket/4261
|
||||||
|
//So we have to blur all the cards and editable areas when
|
||||||
|
//we click on a card
|
||||||
|
//The following doesn't work so we will do the bug
|
||||||
|
//fix recommended in the above bug report
|
||||||
|
// card.click( function() {
|
||||||
|
// $(this).focus();
|
||||||
|
// } );
|
||||||
|
|
||||||
card.draggable(
|
card.draggable(
|
||||||
{
|
{
|
||||||
snap: false,
|
snap: false,
|
||||||
|
|
|
@ -6,7 +6,9 @@ html(lang="en")
|
||||||
|
|
||||||
<script src="/socket.io/socket.io.js"></script>
|
<script src="/socket.io/socket.io.js"></script>
|
||||||
|
|
||||||
<script src="/lib/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script>
|
<!-- <script src="/lib/jquery-ui/js/jquery-ui-1.8.9.custom.min.js"></script> -->
|
||||||
|
<script src="/lib/jquery-ui/development-bundle/ui/jquery-ui-1.8.9.custom.js"></script>
|
||||||
|
|
||||||
|
|
||||||
<script src="/lib/jquery.jeditable.js"></script>
|
<script src="/lib/jquery.jeditable.js"></script>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue