From 378e0f9bea74d7335355b5785e1de07b6e178e3b Mon Sep 17 00:00:00 2001 From: Romain Louis Date: Wed, 7 Nov 2007 01:28:45 +0000 Subject: [PATCH] Readonly class added to performReadOnly method git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44400 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/TableListField.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forms/TableListField.php b/forms/TableListField.php index c8bf67a1c..5b546ba2a 100755 --- a/forms/TableListField.php +++ b/forms/TableListField.php @@ -412,6 +412,7 @@ JS $this->setShowPagination(false); $this->setPermissions(array()); $this->IsReadOnly = true; + $this->addExtraClass( 'readonly' ); return $this; } @@ -980,7 +981,7 @@ JS $items[] = $this->template; } - return implode(" ", $items); + return implode(" ", $items) . ' ' . $this->extraClass(); }