@@ -85,8 +85,9 @@ discard block |
||
85 | 85 | $class = 'cancel'; |
86 | 86 | } |
87 | 87 | $action = new HtmlButton('action-' . $this->identifier . '-' . JArray::count($this->content['actions']->getContent()), $action); |
88 | - if ($class !== '') |
|
89 | - $action->addToProperty('class', $class); |
|
88 | + if ($class !== '') { |
|
89 | + $action->addToProperty('class', $class); |
|
90 | + } |
|
90 | 91 | } |
91 | 92 | return $this->addElementInPart($action, 'actions'); |
92 | 93 | } |
@@ -214,8 +215,9 @@ discard block |
||
214 | 215 | * @see BaseHtml::run() |
215 | 216 | */ |
216 | 217 | public function run(JsUtils $js) { |
217 | - if (isset($this->_bsComponent) === false) |
|
218 | - $this->_bsComponent = $js->semantic()->modal('#' . $this->identifier, $this->_params, $this->_paramParts); |
|
218 | + if (isset($this->_bsComponent) === false) { |
|
219 | + $this->_bsComponent = $js->semantic()->modal('#' . $this->identifier, $this->_params, $this->_paramParts); |
|
220 | + } |
|
219 | 221 | $this->addEventsOnRun($js); |
220 | 222 | return $this->_bsComponent; |
221 | 223 | } |