Readonly class added to performReadOnly method

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44400 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Romain Louis 2007-11-07 01:28:45 +00:00
parent 66ecc4e75e
commit 378e0f9bea

View File

@ -412,6 +412,7 @@ JS
$this->setShowPagination(false); $this->setShowPagination(false);
$this->setPermissions(array()); $this->setPermissions(array());
$this->IsReadOnly = true; $this->IsReadOnly = true;
$this->addExtraClass( 'readonly' );
return $this; return $this;
} }
@ -980,7 +981,7 @@ JS
$items[] = $this->template; $items[] = $this->template;
} }
return implode(" ", $items); return implode(" ", $items) . ' ' . $this->extraClass();
} }