Skip to content

Commit

Permalink
Merge branch 'release/3.7.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
aarpon committed Dec 17, 2019
2 parents 7492f69 + 8ea536d commit 50420be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions scripts/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ function changeStedEntryProperties(selectObj, channel) {
var tag = tagArray[i];
var id = tag.concat(channel);

if (document.getElementById(id) == null) continue;

var inputElement = document.getElementById(id);

if ( selectObj.value == 'off-confocal' ) {
Expand All @@ -400,10 +402,10 @@ function changeStedEntryProperties(selectObj, channel) {
}


function setStedEntryProperties( ) {
function setStedEntryProperties(chanCnt) {
var tag = "StedDepletionMode";

for (var chan = 0; chan < 6; chan++) {
for (var chan = 0; chan < chanCnt; chan++) {
var name = tag.concat(chan);

var inputElement = document.getElementsByName(name);
Expand Down
2 changes: 1 addition & 1 deletion sted_parameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ class="multichannelinput"/>
</div> <!-- rightpanel -->

<script type="text/javascript">
setStedEntryProperties();
setStedEntryProperties(<?php echo $chanCnt; ?>);
</script>

<?php
Expand Down

0 comments on commit 50420be

Please sign in to comment.