From a0cb41893899feaf6214afafbfd5975cb8475552 Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 5 Aug 2005 18:30:35 +0000 Subject: [PATCH] Have first field focus on popup git-svn-id: http://svn.automattic.com/wordpress/trunk@2751 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/tinymce/themes/advanced/image.htm | 3 +++ wp-admin/tinymce/themes/advanced/link.htm | 2 ++ 2 files changed, 5 insertions(+) diff --git a/wp-admin/tinymce/themes/advanced/image.htm b/wp-admin/tinymce/themes/advanced/image.htm index dc0068913e..7655da135a 100644 --- a/wp-admin/tinymce/themes/advanced/image.htm +++ b/wp-admin/tinymce/themes/advanced/image.htm @@ -30,6 +30,8 @@ if (url != null) { } function init() { + // Focus form field + document.getElementById('src').focus(); var formObj = document.forms[0]; for (var i=0; i diff --git a/wp-admin/tinymce/themes/advanced/link.htm b/wp-admin/tinymce/themes/advanced/link.htm index fc8311ce88..a9e4eeb9c4 100644 --- a/wp-admin/tinymce/themes/advanced/link.htm +++ b/wp-admin/tinymce/themes/advanced/link.htm @@ -83,6 +83,8 @@ if (url != null) { formObj.link_list.options[i].selected = true; } } + // Focus form field + document.getElementById('href').focus(); } function insertLink() {