Author: rfrovarp
Date: Mon Oct 29 09:05:42 2007
New Revision: 589705
URL: http://svn.apache.org/viewvc?rev=589705&view=rev
Log:
Prevents stacktrace for icons for placeholder entries in trash or archive. Fixes bug 43662.
Modified:
lenya/trunk/src/modules/sitetree/resources/javascript/lenyatree.js
lenya/trunk/src/modules/sitetree/sitemap.xmap
Modified: lenya/trunk/src/modules/sitetree/resources/javascript/lenyatree.js
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/sitetree/resources/javascript/lenyatree.js?rev=589705&r1=589704&r2=589705&view=diff
==============================================================================
--- lenya/trunk/src/modules/sitetree/resources/javascript/lenyatree.js (original)
+++ lenya/trunk/src/modules/sitetree/resources/javascript/lenyatree.js Mon Oct 29 09:05:42 2007
@@ -247,6 +247,9 @@
if (steps.length < 4) {
href = AREA_BASE_PATH + "/folder";
}
+ else if(item.href == "") {
+ href = AREA_BASE_PATH + "/default";
+ }
else {
href = item.href;
}
@@ -554,4 +557,4 @@
function stripPrefix(s) {
if (s.indexOf(':')==-1) return s;
return s.split(':')[1];
-}
\ No newline at end of file
+}
Modified: lenya/trunk/src/modules/sitetree/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/sitetree/sitemap.xmap?rev=589705&r1=589704&r2=589705&view=diff
==============================================================================
--- lenya/trunk/src/modules/sitetree/sitemap.xmap (original)
+++ lenya/trunk/src/modules/sitetree/sitemap.xmap Mon Oct 29 09:05:42 2007
@@ -155,7 +155,11 @@
<map:match pattern="*/*/folder.gif">
<map:read src="fallback://lenya/modules/sitetree/resources/icons/folder.gif"/>
</map:match>
-
+
+ <map:match pattern="*/*/default.gif">
+ <map:read src="fallback://lenya/modules/sitetree/resources/icons/default.gif"/>
+ </map:match>
+
<map:match pattern="*/*/**.gif">
<map:select type="parameter">
<map:parameter name="parameter-selector-test"
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.