From fc9d3aad2b3baeefb41b0f6284ee531ae328a57a Mon Sep 17 00:00:00 2001 From: "Chakib (spike) Benziane" Date: Fri, 11 May 2012 19:05:25 +0200 Subject: [PATCH] hover text shows with icon TODO: update doc --- example/index.html | 2 +- example/js/bootstrap-magic-button.js | 2 +- js/bootstrap-magic-button.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example/index.html b/example/index.html index b583e8d..231e8cc 100644 --- a/example/index.html +++ b/example/index.html @@ -284,7 +284,7 @@ $('.hover').magicBtn({hover: true}); $('.hover').magicBtn('show'); - $('.icon').magicBtn({hover: true, alignment: 'top'}); + $('.icon').magicBtn({hover: true, alignment: 'top', hoverText:true}); $('.icon').magicBtn('show'); $('.well .magicBtn').magicBtn('show'); diff --git a/example/js/bootstrap-magic-button.js b/example/js/bootstrap-magic-button.js index ede5287..558ffe8 100644 --- a/example/js/bootstrap-magic-button.js +++ b/example/js/bootstrap-magic-button.js @@ -176,7 +176,7 @@ function ($) { var o = obj.options if (!obj.$isToggled) { if (o.hoverText){ - $(this).find('i').hide() + //$(this).find('i').hide() $('' + $(this).attr('value') + ''). hide().appendTo($(this)).fadeIn() } diff --git a/js/bootstrap-magic-button.js b/js/bootstrap-magic-button.js index ede5287..558ffe8 100644 --- a/js/bootstrap-magic-button.js +++ b/js/bootstrap-magic-button.js @@ -176,7 +176,7 @@ function ($) { var o = obj.options if (!obj.$isToggled) { if (o.hoverText){ - $(this).find('i').hide() + //$(this).find('i').hide() $('' + $(this).attr('value') + ''). hide().appendTo($(this)).fadeIn() }