You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by th...@apache.org on 2011/05/06 18:04:39 UTC
svn commit: r1100259 - in /lenya/branches/BRANCH_2_1_X/src/modules/editors:
java/src/org/apache/lenya/cms/editors/InsertAsset.java
resources/javascript/insertAsset.js resources/javascript/insertAssetTree.js
Author: thorsten
Date: Fri May 6 16:04:39 2011
New Revision: 1100259
URL: http://svn.apache.org/viewvc?rev=1100259&view=rev
Log:
Using the default width in case that the image is smaller then 450
Removed:
lenya/branches/BRANCH_2_1_X/src/modules/editors/java/src/org/apache/lenya/cms/editors/InsertAsset.java
lenya/branches/BRANCH_2_1_X/src/modules/editors/resources/javascript/insertAsset.js
Modified:
lenya/branches/BRANCH_2_1_X/src/modules/editors/resources/javascript/insertAssetTree.js
Modified: lenya/branches/BRANCH_2_1_X/src/modules/editors/resources/javascript/insertAssetTree.js
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_1_X/src/modules/editors/resources/javascript/insertAssetTree.js?rev=1100259&r1=1100258&r2=1100259&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_1_X/src/modules/editors/resources/javascript/insertAssetTree.js (original)
+++ lenya/branches/BRANCH_2_1_X/src/modules/editors/resources/javascript/insertAssetTree.js Fri May 6 16:04:39 2011
@@ -69,7 +69,9 @@ function updateInfos(url){
result.innerHTML = "";
var newImg = document.createElement('img');
newImg.setAttribute('src', param[1].replace('.html.meta','.'+extension));
- newImg.setAttribute('width','450');
+ if (width>450) {
+ newImg.setAttribute('width','450');
+ }
result.appendChild(newImg);
} else {
$('#preview').html(mimeType);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org