Skip to content

Commit ac12b8e

Browse files
committed
fix inverted modal pb
1 parent 333494e commit ac12b8e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Ajax/common/Widget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ protected function _compileForm() {
480480
$noValidate = "";
481481
if (\sizeof($this->_form->getValidationParams()) > 0)
482482
$noValidate = "novalidate";
483-
$this->wrapContent("<form class='ui form' id='frm-" . $this->identifier . "' name='frm-" . $this->identifier . "' " . $noValidate . ">", "</form>");
483+
$this->wrapContent("<form class='".$this->_form->getProperty('class')."' id='frm-" . $this->identifier . "' name='frm-" . $this->identifier . "' " . $noValidate . ">", "</form>");
484484
}
485485
}
486486

Ajax/semantic/html/modules/HtmlModal.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ public function forward(JsUtils $js,$initialControllerInstance,$controllerName,$
167167
*/
168168
public function compile(JsUtils $js=NULL, &$view=NULL) {
169169
$this->content=JArray::sortAssociative($this->content, ["header","content","actions" ]);
170+
if(isset($this->_params["inverted"]) && $this->_params["inverted"]){
171+
parent::setInverted(true);
172+
}
170173
return parent::compile($js, $view);
171174
}
172175
/*

0 commit comments

Comments
 (0)