Skip to content

Commit 5ccff38

Browse files
author
Stephen
committed
in case no configs
still show select menu if there are no configs stored.
1 parent 077de4d commit 5ccff38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pages/pdf_export_config.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ function loadIt() {
178178
$file_name = basename($myfile);
179179
$withoutExt = preg_replace('/\\.[^.\\s]{3,4}$/', '', $file_name);
180180
$myselect .= "<option value='$file_name'>$withoutExt</option>\n";
181-
} ?><select id="configselect" onChange="jQuery().annotate('preview');"><option value="" selected>Last Saved Config</option><?php echo $myselect; ?></select><a href="#" id="deleteconfig"><i class="fa fa-arrow-left"></i> delete config</a></p><?php } ?>
181+
} ?><select id="configselect" onChange="jQuery().annotate('preview');"><option value="" selected>Last Saved Config</option><?php echo $myselect; ?></select><a href="#" id="deleteconfig"><i class="fa fa-arrow-left"></i> delete config</a></p><?php } else { ?><select id="configselect" onChange="jQuery().annotate('preview');"><option value="" selected>Last Saved Config</option></select><?php }?>
182182
</div>
183183
<div style="clear:left;"></div>
184184

@@ -236,6 +236,7 @@ function loadIt() {
236236
//echo "<pre>";
237237
//print_r($includearr);
238238
//echo "</pre>";
239+
239240
?>
240241
</div>
241242

0 commit comments

Comments
 (0)