Skip to content

Commit

Permalink
Fix setting delete permissions.
Browse files Browse the repository at this point in the history
And have more places avoid the reserved word 'delete'.
  • Loading branch information
yunosh committed Jul 5, 2016
1 parent e920be6 commit e9fcc07
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions kronolith/js/kronolith.js
Expand Up @@ -3419,7 +3419,7 @@ KronolithCore = {
} else {
$('kronolithC' + type + 'PGedit_' + group).setValue(0);
}
$('kronolithC' + type + 'PGdelete_' + group).setValue(0);
$('kronolithC' + type + 'PGdel_' + group).setValue(0);
if ($('kronolithC' + type + 'PGdelegate_' + group)) {
$('kronolithC' + type + 'PGdelegate_' + group).setValue(0);
}
Expand All @@ -3443,7 +3443,7 @@ KronolithCore = {
} else {
$('kronolithC' + type + 'PUedit_' + user).setValue(0);
}
$('kronolithC' + type + 'PUdelete_' + user).setValue(0);
$('kronolithC' + type + 'PUdel_' + user).setValue(0);
if ($('kronolithC' + type + 'PUdelegate_' + user)) {
$('kronolithC' + type + 'PUdelegate_' + user).setValue(0);
}
Expand Down
20 changes: 10 additions & 10 deletions kronolith/templates/chunks/permissions.inc
Expand Up @@ -103,8 +103,8 @@
<label for="kronolithC<?php echo $type ?>Pdefaultedit"><?php echo _("Edit") ?></label>
</td>
<td>
<input type="checkbox" id="kronolithC<?php echo $type ?>Pdefaultdelete" name="default_delete" />
<label for="kronolithC<?php echo $type ?>Pdefaultdelete"><?php echo _("Delete") ?></label>
<input type="checkbox" id="kronolithC<?php echo $type ?>Pdefaultdel" name="default_delete" />
<label for="kronolithC<?php echo $type ?>Pdefaultdel"><?php echo _("Delete") ?></label>
</td>
<?php if ($type == 'internal'): ?>
<td>
Expand All @@ -130,8 +130,8 @@
<label for="kronolithC<?php echo $type ?>Pguestedit"><?php echo _("Edit") ?></label>
</td>
<td>
<input type="checkbox" id="kronolithC<?php echo $type ?>Pguestdelete" name="guest_delete" />
<label for="kronolithC<?php echo $type ?>Pguestdelete"><?php echo _("Delete") ?></label>
<input type="checkbox" id="kronolithC<?php echo $type ?>Pguestdel" name="guest_delete" />
<label for="kronolithC<?php echo $type ?>Pguestdel"><?php echo _("Delete") ?></label>
</td>
<?php if ($type == 'internal'): ?>
<td>
Expand All @@ -158,8 +158,8 @@
<label for="kronolithC<?php echo $type ?>Pcreatoredit"><?php echo _("Edit") ?></label>
</td>
<td>
<input type="checkbox" id="kronolithC<?php echo $type ?>Pcreatordelete" name="creator_delete" />
<label for="kronolithC<?php echo $type ?>Pcreatordelete"><?php echo _("Delete") ?></label>
<input type="checkbox" id="kronolithC<?php echo $type ?>Pcreatordel" name="creator_delete" />
<label for="kronolithC<?php echo $type ?>Pcreatordel"><?php echo _("Delete") ?></label>
</td>
<?php if ($type == 'internal'): ?>
<td>
Expand Down Expand Up @@ -211,8 +211,8 @@
<label for="kronolithC<?php echo $type ?>PUedit_new"><?php echo _("Edit") ?></label>
</td>
<td>
<input type="checkbox" id="kronolithC<?php echo $type ?>PUdelete_new" name="u_delete[||new]" />
<label for="kronolithC<?php echo $type ?>PUdelete_new"><?php echo _("Delete") ?></label>
<input type="checkbox" id="kronolithC<?php echo $type ?>PUdel_new" name="u_delete[||new]" />
<label for="kronolithC<?php echo $type ?>PUdel_new"><?php echo _("Delete") ?></label>
</td>
<?php if ($type == 'internal'): ?>
<td>
Expand Down Expand Up @@ -258,8 +258,8 @@
<label for="kronolithC<?php echo $type ?>PGedit_new"><?php echo _("Edit") ?></label>
</td>
<td>
<input type="checkbox" id="kronolithC<?php echo $type ?>PGdelete_new" name="g_delete[||new]" />
<label for="kronolithC<?php echo $type ?>PGdelete_new"><?php echo _("Delete") ?></label>
<input type="checkbox" id="kronolithC<?php echo $type ?>PGdel_new" name="g_delete[||new]" />
<label for="kronolithC<?php echo $type ?>PGdel_new"><?php echo _("Delete") ?></label>
</td>
<?php if ($type == 'internal'): ?>
<td>
Expand Down

0 comments on commit e9fcc07

Please sign in to comment.