Set focus for some fields. Props nbachiyski. fixes #6080

git-svn-id: http://svn.automattic.com/wordpress/trunk@7143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-03-03 21:12:17 +00:00
parent 92ad2aabbe
commit 5aabe0133c
3 changed files with 6 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ function autosave_saved(response) {
var res = wpAjax.parseAjaxResponse(response, 'autosave'); // parse the ajax response
var message = '';
if ( res && res.responses.length ) {
if ( res && res.responses && res.responses.length ) {
message = res.responses[0].data; // The saved message or error.
// someone else is editing: disable autosave, set errors
if ( res.responses[0].supplemental && 'disable' == res.responses[0].supplemental['disable_autosave'] ) {