find i-tag elements with *any* class (to circumvent the issue of selecting italicized text)

This commit is contained in:
Barbara Borges Ribeiro
2016-03-17 14:55:57 +00:00
parent e1fc74bdc1
commit 2d39e06c97
5 changed files with 8 additions and 8 deletions

View File

@@ -30,8 +30,8 @@ $.extend(actionButtonInputBinding, {
// retrieve current label and icon
var label = $el.text();
var icon = '';
if ($el.find('i.fa, i.glyphicon').length > 0) {
var icon_html = $el.find('i.fa, i.glyphicon')[0];
if ($el.find('i[class]').length > 0) {
var icon_html = $el.find('i[class]]')[0];
icon = $(icon_html).prop('outerHTML');
}