Author: tdraier
Date: Fri Jul 13 13:02:52 2007
New Revision: 18000
URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D18000&repname=
=3Djahia
Log:
supports new thumbnail link in filemanager
Modified:
trunk/core/src/webapp/jsp/jahia/javascript/zimbra/complexTree/ComplexTr=
eeProperties.js
Modified: trunk/core/src/webapp/jsp/jahia/javascript/zimbra/complexTree/Com=
plexTreeProperties.js
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/trunk/core/src/webapp=
/jsp/jahia/javascript/zimbra/complexTree/ComplexTreeProperties.js&rev=3D180=
00&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/core/src/webapp/jsp/jahia/javascript/zimbra/complexTree/ComplexTr=
eeProperties.js (original)
+++ trunk/core/src/webapp/jsp/jahia/javascript/zimbra/complexTree/ComplexTr=
eeProperties.js Fri Jul 13 13:02:52 2007
@@ -241,21 +241,13 @@
=
ComplexTreeProperties.getFileTypeImageTbnail =3D
function (ext, key) {
- alert(ext);
if (ext =3D=3D "dir") {
return ComplexTreeProperties.CONTEXT + "/jsp/jahia/engines/images/=
types/tbnail/folder.gif";
}
var picto =3D ComplexTreeProperties.getPicto(ext);
if (picto.indexOf("img") > -1) {
- if (key.indexOf("_th_64") > -1) {
- return ComplexTreeProperties.webdavPath + key;
- }
-
- var thName =3D key.substring(0, key.length - 4);
- alert(thName);
- thName +=3D "_txxxh_64." + ext;
-
- return ComplexTreeProperties.webdavPath + thName;
+ var path =3D ComplexTreeProperties.webdavPath.substring(0,ComplexT=
reeProperties.webdavPath.length - 7) + "thumbnail"
+ return path + key;
} else {
return ComplexTreeProperties.CONTEXT + "/jsp/jahia/engines/images/=
types/tbnail/" + picto + ".gif";
}
@@ -279,7 +271,7 @@
state =3D parseInt(state, 10);
switch (state) {
case ComplexTreeProperties.ACTIVE_WORKFLOW_STATE:
- return ComplexTreeProperties.CONTEXT + ComplexTreeProperties.A=
CTIVE_ICONE_SRC;
+ return ComplexTreeProperties.CONTEXT + ComplexTreeProperties.=
ACTIVE_ICONE_SRC;
=
case ComplexTreeProperties.STAGING_WORKFLOW_STATE:
ComplexTreeProperties.DOUBLE_BUTTONS =3D false;
_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list