Documentation Center

WebDAVTools.releaseLock

Description

Release the lock on opened document.

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

Syntax

WebDAVTools .releaseLock (xmlURL : URL) : Object

Arguments

xmlURL
URL. Location of the document

Return Value

Object. The .locked property (Boolean) contains the lock status of the opened document. The .message property (String) contains the error message while locking the document.