From a108b915e27b0a930685d6bf07d27a8d58bfdd18 Mon Sep 17 00:00:00 2001 From: arctic-ice-cool Date: Wed, 20 Mar 2019 10:18:45 +0000 Subject: [PATCH] Title Bars Hide if Undefined Fixed Title bar showing regardless of whether Title is specified --- src/tipso.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tipso.js b/src/tipso.js index 83b9999..57230cd 100644 --- a/src/tipso.js +++ b/src/tipso.js @@ -203,7 +203,8 @@ } tipso_bubble.find('.tipso_title').css({ background: obj.settings.titleBackground, - color: obj.settings.titleColor + color: obj.settings.titleColor, + display: typeof obj.titleContent() === "undefined" ? 'none' : 'block' }); tipso_bubble.find('.tipso_content').html(obj.content()); tipso_bubble.find('.tipso_title').html(obj.titleContent());