diff --git a/htdocs/core/js/lib_head.js.php b/htdocs/core/js/lib_head.js.php
index e604f3281f9..478d66f2c2a 100644
--- a/htdocs/core/js/lib_head.js.php
+++ b/htdocs/core/js/lib_head.js.php
@@ -982,7 +982,7 @@ function newpopup(url,title) {
function document_preview(file, type, title)
{
var ValidImageTypes = ["image/gif", "image/jpeg", "image/png"];
- console.log("document_preview A click was done. file="+file+", type="+type);
+ console.log("document_preview A click was done. file="+file+", type="+type+", title="+title);
if ($.inArray(type, ValidImageTypes) < 0) {
var width='85%';
@@ -1018,8 +1018,8 @@ function document_preview(file, type, title)
}
function show_preview(){
-
- var newElem = '';
+ /* console.log("file="+file+" type="+type+" width="+width+" height="+height); */
+ var newElem = '';
$("#dialogforpopup").html(newElem);
$("#dialogforpopup").dialog({