@@ -66,8 +66,9 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | $table->setRowCount(0, \sizeof($captions)); |
| 68 | 68 | $table->setHeaderValues($captions); |
| 69 | - if(isset($this->_compileParts)) |
|
| 70 | - $table->setCompileParts($this->_compileParts); |
|
| 69 | + if(isset($this->_compileParts)) { |
|
| 70 | + $table->setCompileParts($this->_compileParts); |
|
| 71 | + } |
|
| 71 | 72 | if(isset($this->_searchField) && isset($js)){ |
| 72 | 73 | $this->_searchField->postOn("change", $this->_urls,"{'s':$(this).val()}","-#".$this->identifier." tbody",["preventDefault"=>false]); |
| 73 | 74 | } |
@@ -158,7 +159,7 @@ discard block |
||
| 158 | 159 | $hasPart=$table->hasPart($part); |
| 159 | 160 | if($hasPart){ |
| 160 | 161 | $row=$table->getPart($part)->addRow(\sizeof($captions)); |
| 161 | - }else{ |
|
| 162 | + } else{ |
|
| 162 | 163 | $row=$table->getPart($part)->getRow(0); |
| 163 | 164 | } |
| 164 | 165 | $row->mergeCol(); |
@@ -282,8 +283,9 @@ discard block |
||
| 282 | 283 | private function getDefaultButton($icon,$class=null){ |
| 283 | 284 | $bt=$this->getFieldButton(""); |
| 284 | 285 | $bt->asIcon($icon); |
| 285 | - if(isset($class)) |
|
| 286 | - $bt->addToProperty("class", $class); |
|
| 286 | + if(isset($class)) { |
|
| 287 | + $bt->addToProperty("class", $class); |
|
| 288 | + } |
|
| 287 | 289 | return $bt; |
| 288 | 290 | } |
| 289 | 291 | |