use - instead of _ for forms, and unique ids for submits
This commit is contained in:
parent
e9566af3d9
commit
765bd6142f
|
@ -218,8 +218,8 @@ class ActivitySpamPlugin extends Plugin
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ class TrainHamForm extends Form {
|
|||
|
||||
function formActions()
|
||||
{
|
||||
$this->submit('submit',
|
||||
$this->submit('train-ham-submit-' . $this->notice->id,
|
||||
_('Train ham'),
|
||||
'submit',
|
||||
null,
|
||||
|
@ -110,7 +110,7 @@ class TrainHamForm extends Form {
|
|||
|
||||
function id()
|
||||
{
|
||||
return 'train_ham_' . $this->notice->id;
|
||||
return 'train-ham-' . $this->notice->id;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -141,6 +141,6 @@ class TrainHamForm extends Form {
|
|||
|
||||
function formClass()
|
||||
{
|
||||
return 'form_train_ham ajax';
|
||||
return 'form-train-ham ajax';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ class TrainSpamForm extends Form {
|
|||
|
||||
function formActions()
|
||||
{
|
||||
$this->submit('submit',
|
||||
$this->submit('train-spam-submit-' . $this->notice->id,
|
||||
_('Train spam'),
|
||||
'submit',
|
||||
null,
|
||||
|
@ -110,7 +110,7 @@ class TrainSpamForm extends Form {
|
|||
|
||||
function id()
|
||||
{
|
||||
return 'train_spam_' . $this->notice->id;
|
||||
return 'train-spam-' . $this->notice->id;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -141,6 +141,6 @@ class TrainSpamForm extends Form {
|
|||
|
||||
function formClass()
|
||||
{
|
||||
return 'form_train_spam ajax';
|
||||
return 'form-train-spam ajax';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user