incubator-esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdic...@apache.org
Subject svn commit: r819709 - in /incubator/esme/trunk/server/src/main/webapp: scripts/display_messages.js templates-hidden/message.html
Date Mon, 28 Sep 2009 20:24:59 GMT
Author: vdichev
Date: Mon Sep 28 20:24:59 2009
New Revision: 819709

URL: http://svn.apache.org/viewvc?rev=819709&view=rev
Log:
Reply to message in Web UI.

Modified:
    incubator/esme/trunk/server/src/main/webapp/scripts/display_messages.js
    incubator/esme/trunk/server/src/main/webapp/templates-hidden/message.html

Modified: incubator/esme/trunk/server/src/main/webapp/scripts/display_messages.js
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/webapp/scripts/display_messages.js?rev=819709&r1=819708&r2=819709&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/webapp/scripts/display_messages.js (original)
+++ incubator/esme/trunk/server/src/main/webapp/scripts/display_messages.js Mon Sep 28 20:24:59
2009
@@ -81,6 +81,8 @@
                 attr('onclick', 'javascript:resend_msg(' + id + ');' +
                                            'clearResend("resend_' + id + '")');
             }
+            var reply = newMsg.find('#reply');
+            reply.attr('href', "javascript:setReplyTo(" + id + ", '" + msgBody + "')");
             for (var tagIndex=0; tagIndex < msgTags.length; tagIndex++) {
               var newTag = tagTemplate.clone(true).attr('id',msgTags[tagIndex]);
               newTag.find('a')

Modified: incubator/esme/trunk/server/src/main/webapp/templates-hidden/message.html
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/webapp/templates-hidden/message.html?rev=819709&r1=819708&r2=819709&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/webapp/templates-hidden/message.html (original)
+++ incubator/esme/trunk/server/src/main/webapp/templates-hidden/message.html Mon Sep 28 20:24:59
2009
@@ -69,7 +69,8 @@
                                 <p id="tag"><a href="tag/tag1">tag1</a></p>
                                 <p id="tag"><a href="tag/tag2">tag2</a></p>
                               </td>
-                              <td><button id="resend" class="btn">Resend</button></td>
+                              <td><button id="resend" class="btn">Resend</button><br/>
+                                  <a href="#" id="reply">reply</a></td>
                             </tr>
                             <tr id="message">
                               <td><img id="avatar" src="http://static.twitter.com/images/default_profile_bigger.png"
alt="Anonymous" width="50px"/><div id="author">anon</div></td>
@@ -89,7 +90,8 @@
                                 <p id="tag"><a href="tag/tag1">tag1</a></p>
                                 <p id="tag"><a href="tag/tag3">tag3</a></p>
                               </td>
-                              <td><button id="resend" class="btn">Resend</button></td>
+                              <td><button id="resend" class="btn">Resend</button><br/>
+                                  <a href="#" id="reply">reply</a></td>
                             </tr>
                           </tbody>
                         </table>
@@ -197,7 +199,7 @@
                     function setReplyTo(id, text) {
                       currentConvNumber = id;
                       document.getElementById('reply-to-div').style.display = "block";
-                      jQuery('#reply-to-span').text(text);
+                      jQuery('#reply-to-span').html(text);
                     }
 
                     function clearReplyTo() {



Mime
View raw message