Focus the title editor on open.

This commit is contained in:
voussoir 2017-07-16 17:26:34 -07:00
parent 05d84c733c
commit a1178ca3a5

View file

@ -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) function on_save(editor, edit_element_map)
{ {
var title_editor = edit_element_map['title']; var title_editor = edit_element_map["title"];
var url_editor = edit_element_map['url']; var url_editor = edit_element_map["url"];
editor.show_spinner(); editor.show_spinner();
function callback() function callback()
@ -119,7 +125,6 @@ function on_save(editor, edit_element_map)
post(url, data, callback); post(url, data, callback);
} }
on_open = undefined;
on_cancel = undefined; on_cancel = undefined;
function create_editors() function create_editors()