Spinner: Accept option `id'

refs #8369
This commit is contained in:
Johannes Meyer 2015-08-20 16:13:30 +02:00
parent 736d715d8c
commit 20f144bd4b
1 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,10 @@ class Spinner extends Zend_Form_Decorator_Abstract
*/
public function render($content = '')
{
$spinner = '<div class="spinner ' . ($this->getOption('class') ?: '') . '">'
$spinner = '<div '
. ($this->getOption('id') !== null ? ' id="' . $this->getOption('id') . '"' : '')
. 'class="spinner ' . ($this->getOption('class') ?: '') . '"'
. '>'
. $this->getView()->icon('spin6')
. '</div>';