Skip to content

Commit

Permalink
Add optimisation for extension ce_groups #3
Browse files Browse the repository at this point in the history
  • Loading branch information
kahl-dev committed Feb 27, 2014
1 parent cc0bd73 commit 4371d12
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion system/modules/semantic_html5/SemanticHTML5.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ public function generate()
$this->sh5_additional
));

return $objTemplate->parse();
return $objTemplate->parse() . (($this->sh5_tag == 'end' && version_compare(VERSION, 3, '>=')) ? '<script>
if(document.getElementById("li_' . $this->id . '")) {
var elem = document.getElementById("li_' . $this->id . '").firstElementChild;
elem.className = elem.className.replace("wrapper_start", "wrapper_stop");
}
</script>' : '');
}

return parent::generate();
Expand Down

0 comments on commit 4371d12

Please sign in to comment.