| @@ 266-277 (lines=12) @@ | ||
| 263 | * |
|
| 264 | * @see \Ajax\semantic\html\base\HtmlSemDoubleElement::compile() |
|
| 265 | */ |
|
| 266 | public function compile(JsUtils $js=NULL, &$view=NULL) { |
|
| 267 | if(\sizeof($this->_compileParts)<3){ |
|
| 268 | $this->_template="%content%"; |
|
| 269 | $this->refresh(); |
|
| 270 | }else{ |
|
| 271 | if ($this->propertyContains("class", "sortable")) { |
|
| 272 | $this->addEvent("execute", "$('#" . $this->identifier . "').tablesort();"); |
|
| 273 | } |
|
| 274 | } |
|
| 275 | $this->content=JArray::sortAssociative($this->content, $this->_compileParts); |
|
| 276 | return parent::compile($js, $view); |
|
| 277 | } |
|
| 278 | ||
| 279 | /** |
|
| 280 | * |
|
| @@ 231-242 (lines=12) @@ | ||
| 228 | * |
|
| 229 | * @see \Ajax\semantic\html\base\HtmlSemDoubleElement::compile() |
|
| 230 | */ |
|
| 231 | public function compile(JsUtils $js=NULL, &$view=NULL) { |
|
| 232 | if(\sizeof($this->_compileParts)<3){ |
|
| 233 | $this->_template="%content%"; |
|
| 234 | $this->refresh(); |
|
| 235 | }else{ |
|
| 236 | if ($this->propertyContains("class", "sortable")) { |
|
| 237 | $this->addEvent("execute", "$('#" . $this->identifier . "').tablesort();"); |
|
| 238 | } |
|
| 239 | } |
|
| 240 | $this->content=JArray::sortAssociative($this->content, $this->_compileParts); |
|
| 241 | return parent::compile($js, $view); |
|
| 242 | } |
|
| 243 | ||
| 244 | /** |
|
| 245 | * |
|