Author: hnategh
New Revision: 51337
URL: http://svn.stylite.de/viewvc/egroupware?rev=51337&view=rev
Log:
Introduce thumb_mime_size to vfs-mime widget in order to specify thumb size for specific mime types
Modified:
trunk/etemplate/js/et2_widget_vfs.js
Modified: trunk/etemplate/js/et2_widget_vfs.js
URL: http://svn.stylite.de/viewvc/egroupware/trunk/etemplate/js/et2_widget_vfs.js?rev=51337&r1=51336&r2=51337&view=diff
— trunk/etemplate/js/et2_widget_vfs.js (original)
+++ trunk/etemplate/js/et2_widget_vfs.js Wed Jan 21 16:03:59 2015
@@ -270,11 +270,18 @@
type: “boolean”,
default: true,
description: “Clicking on an image would popup an expose view”
-
}
-
}, -
thumb_mime_size:{ -
name: "Image thumbnail size", -
type: "string", -
default:"", -
description:" Size of thumbnail in pixel for specified mime type with syntax of: mime_type(s),size (eg. image,video,128)" -
} -
},
legacyOptions:[“size”],
- /**
- Constructor
@@ -358,6 +365,16 @@
if(this.options.size)
{
src += “&thsize=”+this.options.size;
-
} -
else if (this.options.thumb_mime_size) -
{ -
var mime_size = this.options.thumb_mime_size.split(','); -
var mime_regex = RegExp(_value.mime.split('/')[0]); -
if (typeof mime_size != 'undefined' && jQuery.isArray(mime_size) -
&& !isNaN(mime_size[mime_size.length-1]) && isNaN(mime_size[0]) && this.options.thumb_mime_size.match(mime_regex[0], 'ig')) -
{ -
src += "&thsize=" + mime_size[mime_size.length-1]; -
} } this.image.css("max-width", "100%"); }
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs