1
0
Fork 0
forked from 0x2620/oxjs

various focus/selection fixes

This commit is contained in:
j 2012-01-27 23:58:44 +05:30
commit ed4f7f0c2d
4 changed files with 15 additions and 9 deletions

View file

@ -849,22 +849,22 @@ Ox.TextList = function(options, self) {
width: width
})
.bind({
blur: submit,
mousedown: function(e) {
// keep mousedown from reaching list
e.stopPropagation();
}
},
})
.bindEvent({
blur: submit,
cancel: submit,
submit: submit
})
.appendTo($cell);
//.focusInput(true);
setTimeout($input.focusInput, 0); // fixme: strange
function submit() {
var value = $input.value();
//$input.loseFocus().remove();
// fixme: leaky, inputs remain in focus stack
$input.remove();
$cell.removeClass('OxEdit')
.css({
// account for padding