Skip to content
Snippets Groups Projects
Commit eaa4b650 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Code comment

parent 4a46480e
No related branches found
No related tags found
No related merge requests found
...@@ -982,7 +982,7 @@ function newpopup(url,title) { ...@@ -982,7 +982,7 @@ function newpopup(url,title) {
function document_preview(file, type, title) function document_preview(file, type, title)
{ {
var ValidImageTypes = ["image/gif", "image/jpeg", "image/png"]; 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) { if ($.inArray(type, ValidImageTypes) < 0) {
var width='85%'; var width='85%';
...@@ -1018,8 +1018,8 @@ function document_preview(file, type, title) ...@@ -1018,8 +1018,8 @@ function document_preview(file, type, title)
} }
function show_preview(){ function show_preview(){
/* console.log("file="+file+" type="+type+" width="+width+" height="+height); */
var newElem = '<object data="'+file+'" type="'+type+'" width="'+object_width+'" height="'+object_height+'"></object>'; var newElem = '<object name="objectpreview" data="'+file+'" type="'+type+'" width="'+object_width+'" height="'+object_height+'" param="noparam"></object>';
$("#dialogforpopup").html(newElem); $("#dialogforpopup").html(newElem);
$("#dialogforpopup").dialog({ $("#dialogforpopup").dialog({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment