[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:
Gaetan Delannay 2013-05-22 10:27:31 +02:00
parent 89c961c5c5
commit fd33e73efa
7 changed files with 46 additions and 11 deletions

View file

@ -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();