Skip to content

Commit 222b0d2

Browse files
committed
trigger close-message
1 parent 96c9218 commit 222b0d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Ajax/semantic/html/collections/HtmlMessage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ public function setDismissable($dismiss = true) {
100100
public function run(JsUtils $js) {
101101
if (! isset($this->_bsComponent)) {
102102
if (isset($this->close)) {
103-
$js->execOn("click", "#" . $this->identifier . " .close", "$(this).closest('.message').transition({$this->_closeTransition})");
103+
$js->execOn("click", "#" . $this->identifier . " .close", "$(this).closest('.message').transition({$this->_closeTransition}).trigger('close-message');");
104104
}
105105
if (isset($this->_timeout)) {
106-
$js->exec("setTimeout(function() { $('#{$this->identifier}').transition({$this->_closeTransition}); }, {$this->_timeout});", true);
106+
$js->exec("setTimeout(function() { $('#{$this->identifier}').transition({$this->_closeTransition}).trigger('close-message'); }, {$this->_timeout});", true);
107107
}
108108
}
109109
return parent::run($js);

0 commit comments

Comments
 (0)