2
0
forked from Wavyzz/dolibarr

NEW Reduce nb of picto on ref into list, merging preview and download

This commit is contained in:
Laurent Destailleur
2016-08-05 12:18:51 +02:00
parent 57a542d52d
commit e168888c59
13 changed files with 170 additions and 91 deletions

View File

@@ -950,14 +950,17 @@ function copyToClipboard(text,text2)
/*
* Function show document preview
*
* @params string file File path
* @params string type mime file
* @params string title
*/
function document_preview(file, type, title){
function document_preview(file, type, title)
{
console.log("document_preview A click was done");
var ValidImageTypes = ["image/gif", "image/jpeg", "image/png"];
console.log("document_preview A click was done. file="+file+", type="+type);
if ($.inArray(type, ValidImageTypes) < 0) {
var width='85%';
var object_width='100%';