From bb90a37abe9eaf427a215c0cc7ffb3a2ec9696ce Mon Sep 17 00:00:00 2001 From: jmaynier Date: Thu, 29 Nov 2012 11:18:50 +0100 Subject: [PATCH] Allow tab-pane title to contain html. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Usefull to add html decoration in the title like icons. For example with Glyphicons:
...
--- src/bootstrap/bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/bootstrap.js b/src/bootstrap/bootstrap.js index d21ed9413954..228ffffbe653 100644 --- a/src/bootstrap/bootstrap.js +++ b/src/bootstrap/bootstrap.js @@ -102,7 +102,7 @@ directive.tabbable = function() { tabs.push(tab); attr.$observe('value', update)(); - attr.$observe('title', function(){ update(); a.text(tab.title); })(); + attr.$observe('title', function(){ update(); a.html(tab.title); })(); function update() { tab.title = attr.title;