Commit f2c02132 authored by Efthymia Bika's avatar Efthymia Bika

Only change directory when one is provided

parent 991f6ff6
......@@ -282,7 +282,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</div>
<input type="file" id="choose-dir" nwdirectory
style="display:none;"
onchange="$('#directory').html($(this).val());
onchange="if($(this).val())
$('#directory').html($(this).val());
check_directory('directory');" />
</div>
</fieldset>
......
......@@ -470,7 +470,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</div>
<input type="file" id="choose-cert-path" nwfile
style="display:none;"
onchange="$('#cert-path').html($(this).val());
onchange="if($(this).val())
$('#cert-path').html($(this).val());
toggle_default_button()"/>
<div class="small-3 columns">
<a href="#"
......
......@@ -119,7 +119,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</div>
<input type="file" id="choose-res-dir" nwdirectory
style="display:none;"
onchange="$('#res-directory').html($(this).val());
onchange="if($(this).val())
$('#res-directory').html($(this).val());
check_directory('res-directory');" />
</div>
</fieldset>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment