[Yanel-commits] rev 48132 - public/yanel/trunk/src/resources/tinymce/htdocs

michi at wyona.com michi at wyona.com
Tue Mar 16 14:51:49 CET 2010


Author: michi
Date: 2010-03-16 14:51:49 +0100 (Tue, 16 Mar 2010)
New Revision: 48132

Modified:
   public/yanel/trunk/src/resources/tinymce/htdocs/tinymce-fix.jelly
Log:
info and error handling improved

Modified: public/yanel/trunk/src/resources/tinymce/htdocs/tinymce-fix.jelly
===================================================================
--- public/yanel/trunk/src/resources/tinymce/htdocs/tinymce-fix.jelly	2010-03-16 13:49:54 UTC (rev 48131)
+++ public/yanel/trunk/src/resources/tinymce/htdocs/tinymce-fix.jelly	2010-03-16 13:51:49 UTC (rev 48132)
@@ -6,8 +6,12 @@
 
     </head>
     <body>
-      <p class="yanel-usecase-error">${resource.getErrorMessages()}</p>
-      <p>${resource.getInfoMessages()}</p>
+      <j:if test="${resource.getErrorMessages() != null}">
+        <p class="yanel-usecase-error"><span style="color: red;">Exception:</span> ${resource.getErrorMessages()}</p>
+      </j:if>
+      <j:if test="${resource.getInfoMessages() != null &amp;&amp; resource.getInfoMessages().length() > 0}">
+        <p>Info: ${resource.getInfoMessages()}</p>
+      </j:if>
       <j:choose>
         <j:when test="${resource.getEditPath() != null &amp;&amp; !resource.getEditPath().equals('')}">
           <div class="yui-skin-sam">
@@ -32,4 +36,4 @@
 
     </body>
   </html>
-</j:jelly>
\ No newline at end of file
+</j:jelly>



More information about the Yanel-commits mailing list