function filepicker_callback(params) {
var html = '<div class="mdl-left"><a href="'+params['url']+'">'+params['file']+'</a>';
- html += '<a href="###" onclick=\'rm_file('+params['id']+', "'+params['file']+'", this)\'>Delete</a>';
+ // TODO: support delete the draft file
+ //html += '<a href="###" onclick=\'rm_file("'+params['id']+'", "'+params['file']+'", this)\'>Delete</a>';
html += '</div>';
+ alert(html);
document.getElementById('file_info_'+params['client_id']).innerHTML = html;
}
$str .= $repojs;
$str .= <<<EOD
-<a href="#nonjsfp" onclick="return launch_filepicker('$id', '$client_id', '$draftvalue')">$straddfile</a>
+<a href="#nonjsfp" onclick="return launch_filepicker('$id', '$client_id', '$draftitemid')">$straddfile</a>
<span id="file_info_{$client_id}" class="notifysuccess">$currentfile</span>
<noscript>