Merge pull request #126 from bergware/6.4-wip

Fixed bug in copying SMB settings to other shares
This commit is contained in:
tom mortensen
2017-06-20 11:47:18 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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) {