Focus the title editor on open.
This commit is contained in:
parent
05d84c733c
commit
a1178ca3a5
1 changed files with 8 additions and 3 deletions
|
@ -100,10 +100,16 @@ function create_bookmark(url, title)
|
|||
}
|
||||
|
||||
|
||||
function on_open(editor, edit_element_map)
|
||||
{
|
||||
editor.open();
|
||||
edit_element_map["title"].focus();
|
||||
}
|
||||
|
||||
function on_save(editor, edit_element_map)
|
||||
{
|
||||
var title_editor = edit_element_map['title'];
|
||||
var url_editor = edit_element_map['url'];
|
||||
var title_editor = edit_element_map["title"];
|
||||
var url_editor = edit_element_map["url"];
|
||||
|
||||
editor.show_spinner();
|
||||
function callback()
|
||||
|
@ -119,7 +125,6 @@ function on_save(editor, edit_element_map)
|
|||
post(url, data, callback);
|
||||
}
|
||||
|
||||
on_open = undefined;
|
||||
on_cancel = undefined;
|
||||
|
||||
function create_editors()
|
||||
|
|
Loading…
Reference in a new issue