function onEndShowStyles($action)
{
$action->element('style', null,
- 'form_train_spam input.submit { background: url("'.$this->path('icons/bullet_black.png').'") no-repeat 0px 0px } ' . "\n" .
- 'form_train_spam input.submit { background: url("'.$this->path('icons/exclamation.png').'") no-repeat 0px 0px } ');
+ '.form-train-spam input.submit { background: url("'.$this->path('icons/bullet_black.png').'") no-repeat 0px 0px } ' . "\n" .
+ '.form-train-ham input.submit { background: url("'.$this->path('icons/exclamation.png').'") no-repeat 0px 0px } ');
return true;
}
function formActions()
{
- $this->submit('submit',
+ $this->submit('train-ham-submit-' . $this->notice->id,
_('Train ham'),
'submit',
null,
function id()
{
- return 'train_ham_' . $this->notice->id;
+ return 'train-ham-' . $this->notice->id;
}
/**
function formClass()
{
- return 'form_train_ham ajax';
+ return 'form-train-ham ajax';
}
}
function formActions()
{
- $this->submit('submit',
+ $this->submit('train-spam-submit-' . $this->notice->id,
_('Train spam'),
'submit',
null,
function id()
{
- return 'train_spam_' . $this->notice->id;
+ return 'train-spam-' . $this->notice->id;
}
/**
function formClass()
{
- return 'form_train_spam ajax';
+ return 'form-train-spam ajax';
}
}