Skip to content

Commit

Permalink
title element removed when hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
zolaemil committed Oct 6, 2013
1 parent e2fbfad commit 0fff7e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions js/meiview-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down
2 changes: 1 addition & 1 deletion meiView.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<button class="ui-widget-content ui-corner-all"onclick="meiView.prevPage()"><span class="ui-icon ui-icon-triangle-1-w"/></button>
<span id="pageNumber-top" width="10">0/0</span>
<button class="ui-widget-content ui-corner-all" onclick="meiView.nextPage()"><span class="ui-icon ui-icon-triangle-1-e"/></button>
<div style="height: 25px"><h4><span id='title' class='title' property='dc:title'>Title Comes Here</span></h4></div>
<div id='titlediv'><h4><span id='title' class='title' property='dc:title'></span></h4></div>
<canvas class="canvas" id="maincanvas" width="780" height="700"></canvas>
<button class="ui-widget-content ui-corner-all"onclick="meiView.prevPage()"><span class="ui-icon ui-icon-triangle-1-w"/></button>
<span id="pageNumber-bottom" width="10">0/0</span>
Expand Down

0 comments on commit 0fff7e0

Please sign in to comment.