mirror of
https://github.com/unraid/webgui.git
synced 2026-01-23 18:09:02 -06:00
Change checkbox for popup window in NewPerms
This commit is contained in:
@@ -25,17 +25,15 @@ function setNewPerms(form) {
|
||||
if (item.selected) {
|
||||
if (dirs.length) dirs += '|';
|
||||
dirs += item.value;
|
||||
item.selected = false;
|
||||
}
|
||||
}
|
||||
for (var i=1,item; item=form.includeShare.options[i]; i++) {
|
||||
if (item.selected) {
|
||||
if (dirs.length) dirs += '|';
|
||||
dirs += item.value;
|
||||
item.selected = false;
|
||||
}
|
||||
}
|
||||
if (dirs) openBox('/webGui/scripts/newperms&arg1='+dirs,'New Permissions',490,430);
|
||||
if (dirs) swal({title:'Proceed?',text:'This will update folder & file permissions',type:'warning',showCancelButton:true},function(){openBox('/webGui/scripts/newperms&arg1='+dirs,'New Permissions',490,430);});
|
||||
}
|
||||
$(function() {
|
||||
$('#s1').dropdownchecklist({emptyText:'None', width:131, firstItemChecksAll:true, explicitClose:'...close'});
|
||||
@@ -69,7 +67,7 @@ Clicking **Start** will open another window and start the background process.
|
||||
|
||||
Closing the window before completion will terminate the background process - so don't do that. This process can take a long time if you have many files.
|
||||
|
||||
<form method="POST" action="/update.htm" target="progressFrame" onsubmit="setNewPerms(this);return false">
|
||||
<form method="POST" action="/update.htm" target="progressFrame">
|
||||
<span style="display:inline-block;margin-top:8px">
|
||||
<span style="display:block;margin-bottom:4px;font-weight:bold">Disks</span>
|
||||
<select id="s1" name="includeDisk" size="1" multiple="multiple" style="display:none">
|
||||
@@ -92,10 +90,9 @@ Closing the window before completion will terminate the background process - so
|
||||
</select>
|
||||
</span>
|
||||
<br><br>
|
||||
<input type="submit" name="start" value="Start" disabled><input type="button" value=" Done " onclick="done()">
|
||||
<?if ($var['fsState']!="Started"):?>
|
||||
Array must be <span class="strong big">Started</span> to change permissions.
|
||||
<?if ($var['fsState']=="Started"):?>
|
||||
<input type="button" value="Start" onclick="setNewPerms(this.form)"><input type="button" value="Done" onclick="done()">
|
||||
<?else:?>
|
||||
<input type="checkbox" onClick="start.disabled=!this.checked"><small>Yes I want to do this</small>
|
||||
<input type="button" value="Start" disabled><input type="button" value="Done" onclick="done()"> Array must be <span class="strong big">Started</span> to change permissions.
|
||||
<?endif;?>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user