Skip to content

Commit

Permalink
duplicates already checked in resourceManager->js
Browse files Browse the repository at this point in the history
  • Loading branch information
hexusdev authored Jul 5, 2017
1 parent 8824185 commit 3855416
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Component/DetailsRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,10 @@ public function attachToCompound(Compound $root, $prepend = false)
);
}
$tr->setAttribute('data-row-with-details', 1);

if(!$this->resourceManager->includedResources()->isIncluded($this->jquery->getAttribute('src'))){
$this->getGrid()->children()->add($this->jquery, 1);
}
$this->getGrid()->children()->add($this->getScript());

$this->getGrid()->children()
->add($this->jquery, 1)
->add($this->getScript());

// fix zebra styled tables
$this->parent()->addChild(new DataView('<tr style="display: none"></tr>'));
Expand Down

0 comments on commit 3855416

Please sign in to comment.