From 415390373e7f242be8193014796f50e48185aafa Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 3 Nov 2008 13:53:23 +0000 Subject: [PATCH] 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 --- javascript/LeftAndMain_right.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/LeftAndMain_right.js b/javascript/LeftAndMain_right.js index a08f7c91..45fff5fe 100755 --- a/javascript/LeftAndMain_right.js +++ b/javascript/LeftAndMain_right.js @@ -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(); } }, /**