Skip to content

Commit

Permalink
Show/hide info issue fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
mi-kas committed Apr 22, 2013
1 parent d1c87a0 commit 3a214fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@
if($('.studyInfo').is(':visible')) {
$('.studyInfo').hide();
$('.patientInfo').hide();
$('#showStudyData').text('Show Infos');
$('#showStudyData').text('Show Infos').val(false);
} else {
$('.studyInfo').show();
$('.patientInfo').show();
$('#showStudyData').text('Hide Infos');
$('#showStudyData').text('Hide Infos').val(true);
}
});

Expand Down Expand Up @@ -213,7 +213,7 @@
</select>
<button type="button" id="metaButton" value="Meta-Daten">Meta-Data</button>
<button type="button" id="resetButton" value="Reset">Reset</button>
<button type="button" id="showStudyData">Hide Infos</button>
<button type="button" id="showStudyData" value="true">Hide Infos</button>
</div>
<div id="slider"></div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions js/DcmViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ DcmViewer.prototype.matrixHandler = function(e) {
}
}
// Show or hide infos
if($('.studyInfo').is(':visible')) {
$('.studyInfo').hide();
$('.patientInfo').hide();
} else {
if($('#showStudyData').val() === 'true') {
$('.studyInfo').show();
$('.patientInfo').show();
} else {
$('.studyInfo').hide();
$('.patientInfo').hide();
}

this.painters = newPainters;
Expand Down

0 comments on commit 3a214fc

Please sign in to comment.