add 'select' option to editCell method of TextLists (helps fix #445)
This commit is contained in:
parent
75a230d417
commit
3007cafcae
1 changed files with 5 additions and 3 deletions
|
@ -825,7 +825,7 @@ Ox.TextList = function(options, self) {
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
that.editCell = function(id, key) {
|
that.editCell = function(id, key, select) {
|
||||||
Ox.Log('List', 'editCell', id, key)
|
Ox.Log('List', 'editCell', id, key)
|
||||||
var $item = getItem(id),
|
var $item = getItem(id),
|
||||||
$cell = getCell(id, key),
|
$cell = getCell(id, key),
|
||||||
|
@ -855,8 +855,10 @@ Ox.TextList = function(options, self) {
|
||||||
submit: submit
|
submit: submit
|
||||||
})
|
})
|
||||||
.appendTo($cell);
|
.appendTo($cell);
|
||||||
//.focusInput(true);
|
// fixme: why do we need a timeout?
|
||||||
setTimeout($input.focusInput, 0); // fixme: strange
|
setTimeout(function() {
|
||||||
|
$input.focusInput(select);
|
||||||
|
}, 0);
|
||||||
function submit() {
|
function submit() {
|
||||||
var value = $input.value();
|
var value = $input.value();
|
||||||
$input.remove();
|
$input.remove();
|
||||||
|
|
Loading…
Add table
Reference in a new issue