[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

@ -515,7 +515,7 @@ define(
LayoutController.prototype.selectIfNew = function (selector, domainObject) {
if (domainObject.getId() === this.droppedIdToSelectAfterRefresh) {
setTimeout(function () {
$('.' + selector)[0].click();
$('[data-layout-id="' + selector + '"]')[0].click();
delete this.droppedIdToSelectAfterRefresh;
}.bind(this), 0);
}