BUGFIX Fixed js error in LeftAndMain_right.js when displaying readonly pages

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65148 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-11-03 13:53:23 +00:00
parent 8d6d5c2501
commit 415390373e

View File

@ -144,8 +144,8 @@ CMSForm.prototype = {
// If there's a title field and it's got a "new XX" value, focus/select that first
// This is really a little too CMS-specific (as opposed to LeftAndMain), but the cleanup can happen after jQuery refactoring
if($('Form_EditForm_Title') && $('Form_EditForm_Title').value.match(/^new/i)) {
$('Form_EditForm_Title').select();
if($('input#Form_EditForm_Title') && $('input#Form_EditForm_Title').value.match(/^new/i)) {
$('input#Form_EditForm_Title').select();
}
},
/**