mirror of
https://github.com/unraid/webgui.git
synced 2026-03-15 23:41:29 -05:00
Merge pull request #126 from bergware/6.4-wip
Fixed bug in copying SMB settings to other shares
This commit is contained in:
@@ -26,7 +26,7 @@ function check_plugin($arg, $google='8.8.8.8') {
|
||||
while (1) {
|
||||
if (exec("ping -qnc1 $google|awk '/received/{print $4}'")==1) break;
|
||||
$inet--;
|
||||
if ($inet) sleep(1); else break;
|
||||
if (!$inet) break;
|
||||
}
|
||||
return $inet ? plugin('check',$arg) : false;
|
||||
}
|
||||
|
||||
@@ -232,7 +232,7 @@ function writeSMB() {
|
||||
var data = {}, copied = false;
|
||||
data.shareExport = '<?=addslashes(htmlspecialchars($sec[$name]['export']))?>';
|
||||
data.shareFruit = '<?=addslashes(htmlspecialchars($sec[$name]['fruit']))?>';
|
||||
data.shareSecurity = '<?=addslashes(htmlspecialchars($sec[$name]['shareSecurity']))?>';
|
||||
data.shareSecurity = '<?=addslashes(htmlspecialchars($sec[$name]['security']))?>';
|
||||
data.changeShareSecurity = 'Apply';
|
||||
$('select#smb1 option').map(function() {
|
||||
if ($(this).prop('selected')==true) {
|
||||
|
||||
Reference in New Issue
Block a user