| 1234567891011121314151617181920212223242526272829303132 |
- /**
- * Ajax delete doc.
- *
- * @param string $link
- * @param int $replaceID
- * @param string $notice
- * @access public
- * @return void
- */
- function ajaxDeleteDoc(link, replaceID, notice)
- {
- if(confirm(notice))
- {
- $.get(link, function(data)
- {
- location.href = JSON.parse(data).locate;
- })
- }
- }
- /**
- * Delete a file.
- *
- * @param int $fileID
- * @access public
- * @return void
- */
- function deleteFile(fileID)
- {
- if(!fileID) return;
- hiddenwin.location.href = createLink('file', 'delete', 'fileID=' + fileID);
- }
|