Skip to content

Commit 7ee23c3

Browse files
Updated script thanks to...
... @janssen-io and @Grim-M for pointing out the fixes
1 parent 252fdd7 commit 7ee23c3

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

item/foundry_item_permission.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
const dialog = new Dialog({
2-
title: "Set desired permission",
3-
content: form,
4-
buttons: {
5-
use: {
6-
label: "Apply permissions",
7-
callback: applyPermissions
8-
}
9-
}
10-
}).render(true);
11-
121
const form = `
132
<div style="display: inline-block; width: 100px">Folder:</div>
143
<input type="string" id="folderName">
@@ -29,6 +18,17 @@ const form = `
2918
</label>
3019
`;
3120

21+
const dialog = new Dialog({
22+
title: "Set desired permission",
23+
content: form,
24+
buttons: {
25+
use: {
26+
label: "Apply permissions",
27+
callback: applyPermissions
28+
}
29+
}
30+
}).render(true);
31+
3232
function applyPermissions(html) {
3333
const folderName = html.find(`input#folderName`)[0].value;
3434
const permission = html.find(`select#desiredPermission`)[0].value;

0 commit comments

Comments
 (0)