* Fix bug #13508.
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
/**
|
||||
* Ajax delete doc.
|
||||
*
|
||||
* @param string $link
|
||||
* @param int $replaceID
|
||||
* @param stirng $notice
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function ajaxDeleteDoc(link, replaceID, notice)
|
||||
{
|
||||
if(confirm(notice))
|
||||
@@ -8,3 +17,16 @@ function ajaxDeleteDoc(link, replaceID, notice)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a file.
|
||||
*
|
||||
* @param int $fileID
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function deleteFile(fileID)
|
||||
{
|
||||
if(!fileID) return;
|
||||
hiddenwin.location.href = createLink('file', 'delete', 'fileID=' + fileID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user