Skip to content

Commit 0a6efd7

Browse files
committed
table onRowClick bug fixed
1 parent 087db86 commit 0a6efd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Ajax/semantic/html/collections/table/traits/TableTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ public function setStriped() {
7171
}
7272

7373
public function onRowClick($jsCode, $stopPropagation=false, $preventDefault=false){
74-
$this->onRowClick($jsCode,$stopPropagation,$preventDefault);
74+
return $this->onRow("click", $jsCode,$stopPropagation,$preventDefault);
7575
}
7676

7777
public function onRow($event,$jsCode, $stopPropagation=false, $preventDefault=false){
78-
$this->_self->addEvent($event."{{tr}}",$jsCode,$stopPropagation,$preventDefault);
78+
return $this->_self->addEvent($event."{{tr}}",$jsCode,$stopPropagation,$preventDefault);
7979
}
8080

8181
public function getOnRow($event, $url, $responseElement="", $parameters=array()){

0 commit comments

Comments
 (0)