[Layout] Don't use class name to query by id

...since ids may be invalid class names. Instead, use a data attribute. Fixes #1846
This commit is contained in:
Victor Woeltjen
2017-12-20 13:32:07 -08:00
parent fcef4274e5
commit b54ee2257e
3 changed files with 5 additions and 4 deletions

View File

@@ -36,7 +36,8 @@
ng-style="{ 'background-size': '100% ' + controller.getGridSize() [1] + 'px' }"></div>
</div>
<div class="abs frame t-frame-outer child-frame panel s-selectable s-moveable s-hover-border {{childObject.getId() + '-' + $id}} t-object-type-{{ childObject.getModel().type }}"
<div class="abs frame t-frame-outer child-frame panel s-selectable s-moveable s-hover-border t-object-type-{{ childObject.getModel().type }}"
data-layout-id="{{childObject.getId() + '-' + $id}}"
ng-class="{ 'no-frame': !controller.hasFrame(childObject), 's-drilled-in': controller.isDrilledIn(childObject) }"
ng-repeat="childObject in composition"
ng-init="controller.selectIfNew(childObject.getId() + '-' + $id, childObject)"