[gen] Add the possibility, for an admin, to unlock a page that was locked for too long by some user.
This commit is contained in:
parent
89c961c5c5
commit
fd33e73efa
7 changed files with 46 additions and 11 deletions
|
@ -403,6 +403,13 @@ function onUnlinkObject(sourceUid, fieldName, targetUid) {
|
|||
askConfirm('form', 'unlinkForm', unlink_confirm);
|
||||
}
|
||||
|
||||
function onUnlockPage(objectUid, pageName) {
|
||||
f = document.getElementById('unlockForm');
|
||||
f.objectUid.value = objectUid;
|
||||
f.pageName.value = pageName;
|
||||
askConfirm('form', 'unlockForm', unlock_confirm);
|
||||
}
|
||||
|
||||
function createCookie(name, value, days) {
|
||||
if (days) {
|
||||
var date = new Date();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue