mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merged revisions 46519 via svnmerge from
svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.2.0-privacy ........ r46519 | aoneil | 2007-12-10 14:30:40 +1300 (Mon, 10 Dec 2007) | 2 lines Fixed PHP notice ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46776 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
69d40fd5aa
commit
a42c2f9bdb
@ -25,6 +25,7 @@ class ImageFormAction extends FormAction {
|
|||||||
Requirements::javascript('jsparty/behaviour.js');
|
Requirements::javascript('jsparty/behaviour.js');
|
||||||
Requirements::javascript('sapphire/javascript/ImageFormAction.js');
|
Requirements::javascript('sapphire/javascript/ImageFormAction.js');
|
||||||
|
|
||||||
|
$classClause = '';
|
||||||
if($this->className) $classClause = $this->className . ' ';
|
if($this->className) $classClause = $this->className . ' ';
|
||||||
if($this->hoverImage) $classClause .= 'rollover ';
|
if($this->hoverImage) $classClause .= 'rollover ';
|
||||||
return "<input class=\"{$classClause}action\" id=\"" . $this->id() . "\" type=\"image\" name=\"{$this->name}\" src=\"{$this->image}\" title=\"{$this->title}\" alt=\"{$this->title}\" />";
|
return "<input class=\"{$classClause}action\" id=\"" . $this->id() . "\" type=\"image\" name=\"{$this->name}\" src=\"{$this->image}\" title=\"{$this->title}\" alt=\"{$this->title}\" />";
|
||||||
|
Loading…
Reference in New Issue
Block a user