From 0fff7e0dea7a89d3080be1acffff0e7ee095cd8d Mon Sep 17 00:00:00 2001 From: Zoltan Komives Date: Sun, 6 Oct 2013 14:19:19 +0200 Subject: [PATCH] title element removed when hidden --- js/meiview-ui.js | 7 +++++-- meiView.html | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/js/meiview-ui.js b/js/meiview-ui.js index e18749f..79025d7 100644 --- a/js/meiview-ui.js +++ b/js/meiview-ui.js @@ -74,10 +74,13 @@ meiView.UI.appID2appLabel = function(appID) { } meiView.UI.showTitle = function(show) { + if (!meiView.UI.titleDiv) { + meiView.UI.titleDiv = $('#title'); + } if (show) { - $('#title').show(); + $('#titlediv h4').append(meiView.UI.titleDiv); } else { - $('#title').hide(); + meiView.UI.titleDiv.remove();//$('#title').hide(); } } diff --git a/meiView.html b/meiView.html index 67abbde..9448370 100644 --- a/meiView.html +++ b/meiView.html @@ -131,7 +131,7 @@ 0/0 -

Title Comes Here

+

0/0