Back to PhocaDownloadRenderFront class

Method renderOnUploadJS

public static
renderOnUploadJS
()

Method renderOnUploadJS - Source code

public static function renderOnUploadJS()
{
    $tag = "<script type=\"text/javascript\"> \n" . "function OnUploadSubmitFile() { \n" . "if ( document.getElementById('catid').value < 1 ) { \n" . "alert('" . Text::_('COM_PHOCADOWNLOAD_PLEASE_SELECT_CATEGORY') . "'); \n" . "return false; \n" . "} \n" . "document.getElementById('loading-label-file').style.display='block'; \n" . "return true; \n" . "} \n" . "</script>";
    return $tag;
}