added another check in the JS to make sure that we're finding the correct icon

This commit is contained in:
Barbara Borges Ribeiro
2016-03-18 18:55:38 +00:00
parent 0e5a3cc5aa
commit 506e3e8a48
5 changed files with 10 additions and 6 deletions

View File

@@ -37,7 +37,9 @@ $.extend(actionButtonInputBinding, {
// from being mistakenly selected)
if ($el.find('i[class]').length > 0) {
var icon_html = $el.find('i[class]')[0];
icon = $(icon_html).prop('outerHTML');
if (icon_html == $el.children()[0]) { // another check for robustness
icon = $(icon_html).prop('outerHTML');
}
}
// update the requested properties