WebDAVTools.releaseLock

This is an example how to release the lock on unloading a document.

Editor.addEventListener("unload", releaseLock);

function releaseLock(evt)
{  
  WebDAVTools.releaseLock(evt.document.getDocumentURI());
}

Release the lock on opened document


WebDAVTools.releaseLock( xmlURL : URL) : Object

Arguments

xmlURL
URL. Location of the document

Return Value

Object
.locked (boolean) contains the lock status of the opened document. .message (text) contains the error message while locking the document.