popovers for icons in label icon chooser

This commit is contained in:
Ezequiel Bergamaschi
2014-04-17 01:29:44 -03:00
parent 8b679bae00
commit 7ea9da3512
2 changed files with 139 additions and 1 deletions

View File

@@ -539,7 +539,19 @@ $(function () {
});
$(".bs-glyphicons-list li").on("click", function(){
//init popovers...
var icons = $(".bs-glyphicons-list li");
icons.each(function() {
$(this).popover({
animation: true,
placement: "auto",
trigger: 'hover',
//FIXME: Which is the best way to use messages.properties here?
content: ($(this).attr('class').replace('glyphicon glyphicon-',''))
})
});
icons.on("click", function(){
var defaultIcon = $("#defaultIcon");
//remove current icon
defaultIcon.find("i").remove();