From 3edc7fc31e085be16643f2f2974bd204f41c89ee Mon Sep 17 00:00:00 2001 From: hoeni Date: Tue, 1 Sep 2015 11:12:37 +0200 Subject: [PATCH] Allow icons (as HTML) in menu item. --- contextMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contextMenu.js b/contextMenu.js index 9ff195b..3bea095 100644 --- a/contextMenu.js +++ b/contextMenu.js @@ -23,7 +23,7 @@ angular.module('ui.bootstrap.contextMenu', []) var $a = $(''); $a.attr({ tabindex: '-1', href: '#' }); var text = typeof item[0] == 'string' ? item[0] : item[0].call($scope, $scope, event, model); - $a.text(text); + $a.html(text); $li.append($a); var enabled = angular.isDefined(item[2]) ? item[2].call($scope, $scope, event, text, model) : true; if (enabled) {