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)
|
||||
var $item = getItem(id),
|
||||
$cell = getCell(id, key),
|
||||
|
@ -855,8 +855,10 @@ Ox.TextList = function(options, self) {
|
|||
submit: submit
|
||||
})
|
||||
.appendTo($cell);
|
||||
//.focusInput(true);
|
||||
setTimeout($input.focusInput, 0); // fixme: strange
|
||||
// fixme: why do we need a timeout?
|
||||
setTimeout(function() {
|
||||
$input.focusInput(select);
|
||||
}, 0);
|
||||
function submit() {
|
||||
var value = $input.value();
|
||||
$input.remove();
|
||||
|
|
Loading…
Reference in a new issue