@@ -68,8 +68,9 @@ discard block |
||
68 | 68 | |
69 | 69 | $table->setRowCount(0, \sizeof($captions)); |
70 | 70 | $table->setHeaderValues($captions); |
71 | - if(isset($this->_compileParts)) |
|
72 | - $table->setCompileParts($this->_compileParts); |
|
71 | + if(isset($this->_compileParts)) { |
|
72 | + $table->setCompileParts($this->_compileParts); |
|
73 | + } |
|
73 | 74 | if(isset($this->_searchField) && isset($js)){ |
74 | 75 | $this->_searchField->postOn("change", $this->_urls,"{'s':$(this).val()}","-#".$this->identifier." tbody",["preventDefault"=>false]); |
75 | 76 | } |
@@ -275,8 +276,9 @@ discard block |
||
275 | 276 | private function getDefaultButton($icon,$class=null){ |
276 | 277 | $bt=$this->getFieldButton(""); |
277 | 278 | $bt->asIcon($icon); |
278 | - if(isset($class)) |
|
279 | - $bt->addToProperty("class", $class); |
|
279 | + if(isset($class)) { |
|
280 | + $bt->addToProperty("class", $class); |
|
281 | + } |
|
280 | 282 | return $bt; |
281 | 283 | } |
282 | 284 |