|
@@ -166,7 +166,6 @@
|
|
|
<div class="networkfs" style="display:none;">
|
|
|
<div class="ui divider"></div>
|
|
|
<p>Security and Authentication</p>
|
|
|
- <small>Leave Username / Password field empty for using the old config</small>
|
|
|
<div class="field">
|
|
|
<label>Username</label>
|
|
|
<input type="text" name="username" placeholder="">
|
|
@@ -175,7 +174,8 @@
|
|
|
<label>Password</label>
|
|
|
<input type="password" name="password" placeholder="">
|
|
|
</div>
|
|
|
- <br>
|
|
|
+ <small>Leave Username / Password field empty for using the old config</small>
|
|
|
+ <br><br>
|
|
|
</div>
|
|
|
<button class="ui right floated button" onclick='handleCancel();'>Cancel</button>
|
|
|
<button class="ui green right floated button" type="submit">Confirm</button>
|
|
@@ -272,7 +272,7 @@
|
|
|
}
|
|
|
|
|
|
function handleFileSystemTypeChange(fstype){
|
|
|
- if (fstype == "webdav" || fstype == "ftp"){
|
|
|
+ if (fstype == "webdav" || fstype == "ftp" || fstype == "smb"){
|
|
|
$(".localfs").hide();
|
|
|
$(".networkfs").show();
|
|
|
}else{
|
|
@@ -293,6 +293,7 @@
|
|
|
$(".networkfs").show();
|
|
|
}
|
|
|
$("#fstype").dropdown("set selected",option.filesystem);
|
|
|
+ handleFileSystemTypeChange(option.filesystem);
|
|
|
$("input[name=mountdev]").val(option.mountdev);
|
|
|
$("input[name=mountpt]").val(option.mountpt);
|
|
|
if (option.automount == true){
|