Skip to content

Commit fececbf

Browse files
committed
Display dom content on show
1 parent da3fa43 commit fececbf

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Ajax/semantic/components/Toast.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ public function showProgress($value='top'){
5353
$this->params['showProgress']=$value;
5454
}
5555

56+
public function setOnShow($jsCode) {
57+
$this->addComponentEvent('onShow', $jsCode);
58+
}
59+
5660
public function setOnHide($jsCode) {
5761
$this->addComponentEvent('onHide', $jsCode);
5862
}

Ajax/semantic/html/base/HtmlSemDoubleElement.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ public function asToast($params=NULL){
198198
if(isset($params)){
199199
$this->_toast->setParams($params);
200200
}
201+
$this->_toast->setOnShow('$("#'.$this->_identifier.'").show();');
201202
return $this->_toast;
202203
}
203204

0 commit comments

Comments
 (0)