Author: michiel
Date: 2010-03-11 13:20:21 +0100 (Thu, 11 Mar 2010)
New Revision: 41340

Modified:
   
mmbase/trunk/applications/vpro-wizards/src/main/webapp/WEB-INF/tags/vpro-wizards/list/add.tag
Log:
sigh, not much does acutally work

Modified: 
mmbase/trunk/applications/vpro-wizards/src/main/webapp/WEB-INF/tags/vpro-wizards/list/add.tag
===================================================================
--- 
mmbase/trunk/applications/vpro-wizards/src/main/webapp/WEB-INF/tags/vpro-wizards/list/add.tag
       2010-03-11 12:07:42 UTC (rev 41339)
+++ 
mmbase/trunk/applications/vpro-wizards/src/main/webapp/WEB-INF/tags/vpro-wizards/list/add.tag
       2010-03-11 12:20:21 UTC (rev 41340)
@@ -26,16 +26,17 @@
 
 <div class="add">
   <c:url value="${wizardfile}.jsp" var="link">
-    <c:if test="${not empty relationrole}">
+    <c:if test="${not empty parentnodenr}">
       <c:param name="relationrole" value="${relationrole}" />
       <c:if test="${not empty searchdir}"><c:param name="searchdir" 
value="${searchdir}" /></c:if>
       <c:if test="${not empty searchdir}"><c:param name="parentnodenr" 
value="${parentnodenr}" /></c:if>
     </c:if>
   </c:url>
-  <a href="${link}&${extraparams}" class="addButton">
+  <a href="${link}${empty parentnodenr ? '?' : '&'}${extraparams}" 
class="addButton">
     <c:choose>
       <c:when test="${not empty text}"> ${text} </c:when>
-      <c:otherwise>nieuw(e) ${wizardfile}</c:otherwise> <!-- so much for i18n 
-->
+      <c:otherwise>nieuw(e) ${wizardfile}</c:otherwise> <%--so much for i18n 
--%>
     </c:choose>
-  <img 
src="${pageContext.request.contextPath}/mmbase/vpro-wizards/system/img/new.png" 
class="icon" border="0" /></a>
+    <img 
src="${pageContext.request.contextPath}/mmbase/vpro-wizards/system/img/new.png" 
class="icon" border="0" />
+  </a>
 </div>
\ No newline at end of file

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to