Index: tpl/imce-file-list.tpl.php =================================================================== --- tpl/imce-file-list.tpl.php (revision 51) +++ tpl/imce-file-list.tpl.php (revision 56) @@ -16,6 +16,7 @@ + Index: tpl/imce-content.tpl.php =================================================================== --- tpl/imce-content.tpl.php (revision 51) +++ tpl/imce-content.tpl.php (revision 56) @@ -74,6 +74,7 @@ +   Index: css/imce-content.css =================================================================== --- css/imce-content.css (revision 51) +++ css/imce-content.css (revision 56) @@ -152,6 +152,10 @@ width: 12.5em; text-align: center; } +table.files td.fid { + width: 0em; + visibility: hidden; +} table.files tr { border: none; } Index: inc/page.inc =================================================================== --- inc/page.inc (revision 51) +++ inc/page.inc (revision 56) @@ -530,7 +530,8 @@ 'size' => $file->filesize, 'width' => $file->width, 'height' => $file->height, - 'date' => $file->timestamp + 'date' => $file->timestamp, + 'fid' => $file->fid, ); if (isset($_GET['jsop'])) { $add = $imce['files'][$file->filename]; @@ -626,7 +627,7 @@ */ function imce_image_info($file) { if (is_file($file) && ($info = @getimagesize($file)) && in_array($info[2], array(IMAGETYPE_JPEG, IMAGETYPE_GIF, IMAGETYPE_PNG)) ) { - return array('width' => $info[0], 'height' => $info[1], 'type' => $info[2], 'mime' => $info['mime']); + return array('width' => $info[0], 'height' => $info[1], 'type' => $info[2], 'mime' => $info['mime'], 'fid'=>0); } return FALSE; } @@ -920,7 +921,8 @@ 'size' => $size, 'width' => $width, 'height' => $height, - 'date' => $date + 'date' => $date, + 'fid' => $img['fid'] ); $directory['dirsize'] += $size; } Index: js/imce.js =================================================================== --- js/imce.js (revision 51) +++ js/imce.js (revision 56) @@ -133,7 +133,7 @@ //add a file to the list. (having properties name,size,formatted size,width,height,date,formatted date) fileAdd: function(file) { - var row, fid = file.name, i = imce.findex.length, attr = ['name', 'size', 'width', 'height', 'date']; + var row, fid = file.name, i = imce.findex.length, attr = ['name', 'size', 'width', 'height', 'date', 'fid']; if (!(row = imce.fids[fid])) { row = imce.findex[i] = imce.fids[fid] = imce.tbody.insertRow(i); for (var i in attr) row.insertCell(i).className = attr[i]; @@ -143,6 +143,7 @@ row.cells[2].innerHTML = file.width; row.cells[3].innerHTML = file.height; row.cells[4].innerHTML = file.fdate; row.cells[4].id = file.date; + row.cells[5].innerHTML = file.fid; imce.invoke('list', row); if (imce.vars.prvfid == fid) imce.setPreview(fid); }, @@ -160,7 +161,6 @@ //return a file object containing all properties. fileGet: function (fid) { var row = imce.fids[fid]; - alert(fid); return row ? { name: imce.decode(fid), url: imce.getURL(fid), @@ -169,7 +169,8 @@ width: row.cells[2].innerHTML * 1, height: row.cells[3].innerHTML * 1, date: row.cells[4].innerHTML, - time: row.cells[4].id * 1 + time: row.cells[4].id * 1, + fid: row.cells[5].innerHTML*1 } : null; },