This commit is contained in:
tianshujie98
2021-07-06 14:23:27 +08:00
parent d9fb8d7af0
commit 3e5e6cf6e2
+22
View File
@@ -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);
}